Class: JSONReader<T>
A reader that reads JSON data and returns an array of Document objects. Supports various options to modify the output.
Extends
Type Parameters
• T extends JSONValue
Constructors
new JSONReader()
new JSONReader<
T
>(options
):JSONReader
<T
>
Parameters
• options: JSONReaderOptions
= {}
Returns
JSONReader
<T
>
Overrides
Defined in
packages/llamaindex/src/readers/JSONReader.ts:51
Methods
loadData()
Parameters
• filePath: string
Returns
Inherited from
Defined in
packages/core/dist/schema/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:77
addMetaData()
static
addMetaData(filePath
): (doc
,index
) =>void
Parameters
• filePath: string
Returns
Function
Parameters
• index: number
Returns
void
Inherited from
Defined in
packages/core/dist/schema/index.d.ts:188