ConstJSON object.n).Gotchas.
s === JSONInt.stringify(JSONInt.parse(s)) is generally true for canonical JSON inputs.
o !== JSONInt.parse(JSONInt.stringify(o)) can happen because:
undefined values are dropped or become null in arrays, per JSON rules.toJSON/replacer behavior can change output.There is no consistent way to preserve BigInt type through JSON today, so handling that case is
up to users. In Cashu-TS, we use the Amount VO to normalize numbers.
BigInt-safe JSON parser/stringifier.