jsonMakeBigIntReplacerFunction
jsonMakeBigIntReplacerFunction(
replacer?):JsonReplacerFunction
Defined in: packages/core/src/json/replacers/big-int.ts:18
Create a JSON replacer function that converts BigInt values to either numbers (if within safe range) or strings.
This function can be used as a base replacer to ensure that BigInt values are properly handled during JSON serialization, and can be combined with a user-defined replacer for additional customization.
Parameters
Section titled “Parameters”replacer?
Section titled “replacer?”An optional user-defined replacer (function or property list) to apply after the BigInt replacer.
Returns
Section titled “Returns”A JSON replacer function that handles BigInt values and applies the user-defined replacer if provided.