Skip to content

error in number serialization #2560

Closed
Closed
@dsxmachina

Description

@dsxmachina

Describe the bug
If you have serialized a 64-bit unsinged integer to json and you pipe the json through jq, the number will be changed into something else.

To Reproduce

echo '{"big-number":18446744073709551615}' | jq

Produces

{
  "big-number": 18446744073709552000
}

Expected behavior
18446744073709551615

Environment (please complete the following information):

  • Linux, NixOS 22.11
  • jq 1.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions