We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
JSON.stringify({key:1n});
throws:
Uncaught TypeError: Do not know how to serialize a BigInt at JSON.stringify (<anonymous>)
Describe the solution you'd like
"{\"key\":1n}"
Describe alternatives you've considered
when call JSON.parse the string, it should convert back to {key:1n}.
The text was updated successfully, but these errors were encountered:
This is working as intended, bigints are not supported by JSON. See https://github.com/tc39/proposal-json-parse-with-source for a WIP solution.
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
throws:
Describe the solution you'd like
Describe alternatives you've considered
when call JSON.parse the string, it should convert back to {key:1n}.
The text was updated successfully, but these errors were encountered: