(value)
| 271 | } |
| 272 | |
| 273 | export function unpackTopLevelEscapedJSON(value) { |
| 274 | if (typeof value !== 'string' || !value.trim()) return value; |
| 275 | |
| 276 | try { |
| 277 | const parsed = parseWithBigInt(value); |
| 278 | if (_isDeepParsable(parsed)) { |
| 279 | return deepParseJSONStrings(parsed); |
| 280 | } |
| 281 | } catch (_) {} |
| 282 | |
| 283 | return value; |
| 284 | } |
| 285 | |
| 286 | function _isDeepParsable(parsed) { |
| 287 | if (typeof parsed !== 'object' || parsed === null) return false; |
nothing calls this directly
no test coverage detected