Skip to content
New issue

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

BigInt serialisation #33

Closed
shashikantj opened this issue Aug 4, 2020 · 1 comment · May be fixed by #35
Closed

BigInt serialisation #33

shashikantj opened this issue Aug 4, 2020 · 1 comment · May be fixed by #35

Comments

@shashikantj
Copy link

Fails to stringify if object has a bigInt

var jsonStringifySafe require('json-stringify-safe');
var v = {t: BigInt(0)}
jsonStringifySafe(v);

>>> Do not know how to serialize a BigInt
@shashikantj
Copy link
Author

this is a problem with JSON.stringify itself GoogleChromeLabs/jsbi#30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant