Skip to content

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.

  • FileReader<Document>

new JSONReader(options): JSONReader

Defined in: .build/typescript/packages/readers/src/json.ts:164

JSONReaderOptions = {}

JSONReader

FileReader<Document>.constructor

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.

Uint8Array

The JSON data as a Uint8Array.

Promise<Document<Metadata>[]>

A Promise that resolves to an array of Document objects.

FileReader.loadDataAsContent