Comment on The perils of UUID primary keys in SQLiteparentComments−sheept3moIf you're applying a replacer, then you'd supply a reviver when parsing: const json = '{ "a": 9007199254740993 }' JSON.parse(json, (_key, value, context) => /^\d+$/.test(context.source) ? BigInt(context.source) : value)−mort963moYeah but now you have the world's biggest foot gun in your API.
Comments
If you're applying a replacer, then you'd supply a reviver when parsing:
Yeah but now you have the world's biggest foot gun in your API.