Skip to content
JS
JavaScript error

TypeError

The JavaScript exception "BigInt value can't be serialized in JSON" occurs when a BigInt is encountered in JSON.stringify with no custom serialization method provided.

Reference entryJavaScriptFetched
TypeError: Do not know how to serialize a BigInt (V8-based)
As listed by MDN Web Docs
TypeError: BigInt value can't be serialized in JSON (Firefox)
As listed by MDN Web Docs
TypeError: JSON.stringify cannot serialize BigInt. (Safari)
As listed by MDN Web Docs
Category
TypeError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.273Z.