Skip to main content

bigIntJsonStringifyReplacer()

bigIntJsonStringifyReplacer(_key: string, value: unknown): unknown

Defined in: packages/react-querybuilder/src/utils/formatQuery/utils.ts:345

"Replacer" method for JSON.stringify's second argument. Converts bigint values to objects with a $bigint property having a value of a string representation of the actual bigint-type value.

Inverse of bigIntJsonParseReviver.

Parameters

ParameterType
_keystring
valueunknown

Returns

unknown

See

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.