I created values of type BigInt in nodejs by using something like BigInt('1679052926043890575')
When inserting values with this type it was throwing an error at line 232 because JSON.stringify doesn't support BigInt.
I added a 2 step process as I have commented in the code.
In JSON.stringify, cast BigInt to a string and wrap in an object for identifying in replace later.
Replace the BigInt object wrap to leave an unquoted BigInt remaining.
Change Summary
I created values of type
BigInt
in nodejs by using something likeBigInt('1679052926043890575')
When inserting values with this type it was throwing an error at line 232 becauseJSON.stringify
doesn't supportBigInt
.I added a 2 step process as I have commented in the code.
JSON.stringify
, castBigInt
to a string and wrap in an object for identifying in replace later.Thanks for your consideration, Davey
PR Checklist