Parameters
JSONReader also accepts the base Reader constructor parameters.
Methods
read()
Reads a JSON file and returns a list of documents.
async_read()
The async variant of read(). It accepts the same parameters.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Parameters and methods of JSONReader, which reads JSON files into documents.
| Parameter | Type | Default | Description |
|---|---|---|---|
chunking_strategy | Optional[ChunkingStrategy] | FixedSizeChunking() | Strategy used to chunk documents |
JSONReader also accepts the base Reader constructor parameters.
read()| Parameter | Type | Default | Description |
|---|---|---|---|
path | Union[Path, IO[Any]] | Required | Path to the JSON file or a file-like object |
name | Optional[str] | None | Name override for the resulting documents |
async_read()read(). It accepts the same parameters.Was this page helpful?