Skip to content

Large integer gets silently altered due to JavaScript number precision limits #19

@jiz4oh

Description

@jiz4oh

When processing JSON containing very large integers, fixjson silently alters the value due to JavaScript's Number precision limitations.

> echo "{'id': 3791411052119578828}" | fixjson

Actual output:

{
  "id": 3791411052119578600
}

Expected output:

{
  "id": 3791411052119578828
}

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