-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Description:
BigInt is JavaScript's way of handling large numbers, but it is not part of the JSON specification. When a JSON payload is received from a language that supports long numeric values, those values are often represented as numbers. In JavaScript, these numbers might be converted to BigInt for internal use.
However, when displaying these values to end users in a JSON viewer, appending n (indicating BigInt) can be confusing. Users may not be aware of the specifics of BigInt or JavaScript's implementation details. What matters to the users is that these values are numbers as they appear in the original JSON, without any additional notations.
To maintain clarity and consistency with the JSON format, the viewer should display these values as plain numbers without the n suffix.