MCPcopy Index your code
hub / github.com/kangax/html-minifier / parseJSON

Function parseJSON

cli.js:70–82  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

68}
69
70function parseJSON(value) {
71 if (value) {
72 try {
73 return JSON.parse(value);
74 }
75 catch (e) {
76 if (/^{/.test(value)) {
77 fatal('Could not parse JSON value \'' + value + '\'');
78 }
79 return value;
80 }
81 }
82}
83
84function parseJSONArray(value) {
85 if (value) {

Callers 1

parseJSONArrayFunction · 0.85

Calls 1

fatalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…