(value)
| 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( |
no test coverage detected