Stringify a value as JSON with some differences:
safeStringifyJson({ val: 1n })
'{ "val": "1" }'
the resulting json.
the value to stringify.
Generated using TypeDoc
Stringify a value as JSON with some differences:
safeStringifyJson({ val: 1n })
outputs'{ "val": "1" }'
). This is because of a decision by TC39 to not support bigint in JSON.stringify https://github.com/tc39/proposal-bigint/issues/24Returns
the resulting json.