@loaders.gl/json
Version:
Framework-independent loader for JSON and streaming JSON formats
24 lines • 642 B
TypeScript
import type { Batch } from '@loaders.gl/schema';
import type { LoaderOptions } from '@loaders.gl/loader-utils';
export type MetadataBatch = Batch & {
shape: 'metadata';
};
export type JSONBatch = Batch & {
shape: 'json';
/** JSON data */
container: any;
};
/**
* @param table -
* @param jsonpaths -
*/
export type JSONLoaderOptions = LoaderOptions & {
json?: {
/** Not specifying shape leaves avoids changes */
shape?: 'object-row-table' | 'array-row-table';
table?: boolean;
jsonpaths?: string[];
};
};
export declare const JSONLoader: any;
//# sourceMappingURL=json-loader.d.ts.map