Skip to content

Avoid appending n to BigInt values in the JSON viewer #40

Description

@Assem-Uber

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions