MCPcopy Create free account
hub / github.com/zxlie/FeHelper / unpackTopLevelEscapedJSON

Function unpackTopLevelEscapedJSON

apps/json-format/json-auto-utils.js:266–277  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

264 }
265
266 function unpackTopLevelEscapedJSON(value) {
267 if (typeof value !== 'string' || !value.trim()) return value;
268
269 try {
270 const parsed = parseWithBigInt(value);
271 if (isJSONContainer(parsed)) {
272 return deepParseJSONStrings(parsed);
273 }
274 } catch (_) {}
275
276 return value;
277 }
278
279 function safeStringify(obj, space) {
280 const tagged = JSON.stringify(

Callers 1

parseJSONLikeFunction · 0.70

Calls 3

isJSONContainerFunction · 0.85
parseWithBigIntFunction · 0.70
deepParseJSONStringsFunction · 0.70

Tested by

no test coverage detected