-
Notifications
You must be signed in to change notification settings - Fork 18
Handle large integer values losslessly? #152
Copy link
Copy link
Open
Description
Currently these are formatted with scientific notation (in some cases lossily). For example (from a user JSON object from the Twitter API):
$ xq .id < twitter-test.json
1.470944601309528e18
$ jq .id < twitter-test.json
1470944601309528000
$ gojq .id < twitter-test.json
1470944601309528072Is this intentional? I'm currently using gojq instead of jq specifically because of how it handles values like this, and the lossless approach seems like it would generally be the least likely to cause issues for users.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels