> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Export Json • AI Agents Framework

> export_json: Export profiling data as JSON.

# export\_json

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Profiler**](../classes/Profiler) class in the [**profiler**](../modules/profiler) module.

Export profiling data as JSON.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def export_json() -> str
```

### Returns

<ResponseField name="Returns" type="str">
  The result of the operation.
</ResponseField>

## Uses

* `cls.get_summary`
* `cls.get_statistics`
* `asdict`
* `json.dumps`

## Used By

* [`Profiler.export_to_file`](../functions/Profiler-export_to_file)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L772">
  `praisonai/profiler.py` at line 772
</Card>
