> ## 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.

# Json File Exporter • Rust AI Agent SDK

> JsonFileExporter: JSON file exporter.

# JsonFileExporter

> Defined in the [**trace**](../modules/trace) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

JSON file exporter.

## Fields

| Name   | Type                 | Description |
| ------ | -------------------- | ----------- |
| `path` | `std::path::PathBuf` | -           |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new(path: impl Into<std::path::PathBuf>) -> Self
```

Create a new JSON file exporter.

**Parameters:**

| Name   | Type                                  |
| ------ | ------------------------------------- |
| `path` | `impl Into&lt;std::path::PathBuf&gt;` |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/trace/mod.rs#L357">
  `praisonai/src/trace/mod.rs` at line 357
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Files" icon="file" href="/docs/rust/files" />

  <Card title="Rust Documents" icon="file-lines" href="/docs/rust/documents" />
</CardGroup>
