Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
}
195
function
jsonType(item) {
196
try {
197
return
JSON.parse(item);
198
}
199
catch (e) {
200
return
item;
201
}
202
}
Callers
1
dynamicType
Function · 0.70
Calls
1
parse
Method · 0.80
Tested by
no test coverage detected