MCPcopy Create free account
hub / github.com/microsoft/SandDance / json

Function json

docs/app/js/sanddance-app.js:109098–109101  ·  view source on GitHub ↗
(data, format3)

Source from the content-addressed store, hash-verified

109096 return typeof Buffer === "function" && (0, _vegaUtil.isFunction)(Buffer.isBuffer) ? Buffer.isBuffer(_) : false;
109097}
109098function json(data, format3) {
109099 const prop = format3 && format3.property ? (0, _vegaUtil.field)(format3.property) : (0, _vegaUtil.identity);
109100 return (0, _vegaUtil.isObject)(data) && !isBuffer(data) ? parseJSON(prop(data), format3) : prop(JSON.parse(data));
109101}
109102json.responseType = "json";
109103function parseJSON(data, format4) {
109104 if (!(0, _vegaUtil.isArray)(data) && (0, _vegaUtil.isIterable)(data)) data = [

Callers 4

topojsonFunction · 0.70
rollup.config.jsFile · 0.50
rollup.config.jsFile · 0.50
rollup.config.jsFile · 0.50

Calls 2

isBufferFunction · 0.70
parseJSONFunction · 0.70

Tested by

no test coverage detected