MCPcopy Create free account
hub / github.com/Keyang/node-csvtojson / jsonType

Function jsonType

v2/lineToJson.js:195–202  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

193 return !(trimmed.length === 5 && trimmed.toLowerCase() === "false");
194}
195function jsonType(item) {
196 try {
197 return JSON.parse(item);
198 }
199 catch (e) {
200 return item;
201 }
202}

Callers 1

dynamicTypeFunction · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected