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/readers/json/dist/index.d.ts:68
Methods
loadData()
Parameters
• filePath: string
Returns
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:188
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/readers/json/dist/index.d.ts:76
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:189