JSONReader
Defined in: .build/typescript/packages/readers/src/json.ts:161
A reader that reads JSON data and returns an array of Document objects. Supports various options to modify the output.
Extends
Section titled “Extends”FileReader
<Document
>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new JSONReader(
options
):JSONReader
Defined in: .build/typescript/packages/readers/src/json.ts:164
Parameters
Section titled “Parameters”options
Section titled “options”JSONReaderOptions
= {}
Returns
Section titled “Returns”JSONReader
Overrides
Section titled “Overrides”FileReader<Document>.constructor
Methods
Section titled “Methods”loadDataAsContent()
Section titled “loadDataAsContent()”loadDataAsContent(
content
):Promise
<Document
<Metadata
>[]>
Defined in: .build/typescript/packages/readers/src/json.ts:204
Loads JSON data and returns an array of Document objects.
Parameters
Section titled “Parameters”content
Section titled “content”Uint8Array
The JSON data as a Uint8Array.
Returns
Section titled “Returns”Promise
<Document
<Metadata
>[]>
A Promise that resolves to an array of Document objects.
Overrides
Section titled “Overrides”FileReader.loadDataAsContent