Skip to content

Unexpected rounding of integers #43

@jzajac

Description

@jzajac

Describe the bug
OKJSON will unexpectedly and without warning round large integers.

To Reproduce
Steps to reproduce the behavior:

  1. Create a JSON file with a large integer (i.e., 60436225835668127)
  2. Open in OKJSON.
  3. Note the integer is rounded (i.e., for the above example, the app will show 60436225835668130).

App version 2.9.1 (214).

Expected behavior
OKJSON should not round integers. Alternatively, it should warn when it cannot represent a large number without rounding.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Additional context
Add any other context about the problem here.

Opening this file in OKJSON will demonstrate the bug.

{
	"id": 60436225835668127
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions