JavaScript
JavaScript BigInt value cannot be serialized in JSON
JavaScript failed to stringify data because JSON does not support BigInt values directly.
JavaScript
JavaScript failed to stringify data because JSON does not support BigInt values directly.
Observed message
TypeError: BigInt value can't be serialized in JSON
Why it happens
How to fix it
Official reference
MDN: TypeError: BigInt value can't be serialized in JSONRelated errors
Explore more