UNPKG

@deck.gl/json

Version:

JSON format rendering components for deck.gl

9 lines 326 B
// deck.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors // Accept JSON strings by parsing them // TODO - use a parser that provides meaninful error messages export default function parseJSON(json) { return typeof json === 'string' ? JSON.parse(json) : json; } //# sourceMappingURL=parse-json.js.map