Class: JSONReader
A reader that reads JSON data and returns an array of Document objects. Supports various options to modify the output.
Extends
Constructors
new JSONReader()
new JSONReader(
options
):JSONReader
Parameters
• options: JSONReaderOptions
= {}
Returns
Overrides
Defined in
packages/llamaindex/src/readers/JSONReader.ts:164
Methods
loadData()
Parameters
• filePath: string
Returns
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:187
loadDataAsContent()
Loads JSON data and returns an array of Document objects.
Parameters
• content: Uint8Array
The JSON data as a Uint8Array.
Returns
A Promise that resolves to an array of Document objects.
Overrides
Defined in
packages/llamaindex/src/readers/JSONReader.ts:204
addMetaData()
static
addMetaData(filePath
): (doc
,index
) =>void
Parameters
• filePath: string
Returns
Function
Parameters
• index: number
Returns
void
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:188