Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why yield this result? #1783

Closed
skygragon opened this issue Dec 26, 2018 · 2 comments
Closed

why yield this result? #1783

skygragon opened this issue Dec 26, 2018 · 2 comments

Comments

@skygragon
Copy link

jq 1.5 on mac

# echo -n '{"id":9224851642388483}' | jq .
{
  "id": 9224851642388484
}
@linquize
Copy link

linquize commented Dec 26, 2018

JSON does not have int64 type. It treats this number as Number type that store as a floating point number, which may lose precision for int64.

see #1652 and https://github.com/stedolan/jq/wiki/FAQ#numbers

@pkoppstein
Copy link
Contributor

pkoppstein commented Dec 26, 2018

See also PR #1752

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants