> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-docs-scavio-google-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# JSON Files

> Persist Agno sessions and other data in local JSON files.

`JsonDb` stores Agent, Team, and Workflow sessions, memories, knowledge, evaluations, and traces in local JSON files.

<Warning>
  `JsonDb` reads and rewrites local files without concurrency controls. Use it for demos and tests.
</Warning>

## Usage

Install the `openai` package:

```shell theme={null}
uv pip install openai
```

```python json_for_agent.py theme={null}
from agno.agent import Agent
from agno.db.json import JsonDb

db = JsonDb(db_path="tmp/json_db")
agent = Agent(db=db)
```

## Parameters

<Snippet file="db-json-params.mdx" />
