there's no type-safe way to serialize them because of this i think:
let stringifySafe = v =>
JSON.stringifyAnyWithReplacer(v, (k, v) =>
switch typeof(v) {
| #bigint =>
let bi = (Obj.magic(v) :> BigInt.t)
JSON.Encode.string(bi->BigInt.toString ++ "n")
| _ => v
}
)
fix: add BigInt to JSON.Classify? (i recall support for @unboxed BigInt.t being added rather recently)