@loaders.gl/json
Version:
Framework-independent loader for JSON and streaming JSON formats
18 lines • 614 B
JavaScript
// loaders.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
// Copyright 2022 Foursquare Labs, Inc.
import { encodeTableAsJSON } from "./lib/encoders/json-encoder.js";
export const JSONWriter = {
id: 'json',
version: 'latest',
module: 'json',
name: 'JSON',
extensions: ['json'],
mimeTypes: ['application/json'],
options: {},
text: true,
encode: async (table, options) => new TextEncoder().encode(encodeTableAsJSON(table, options)).buffer,
encodeTextSync: (table, options) => encodeTableAsJSON(table, options)
};
//# sourceMappingURL=json-writer.js.map