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

Int overflow for 64 bit numbers #37

Open
SaculRennorb opened this issue Oct 7, 2023 · 1 comment
Open

Int overflow for 64 bit numbers #37

SaculRennorb opened this issue Oct 7, 2023 · 1 comment

Comments

@SaculRennorb
Copy link

SaculRennorb commented Oct 7, 2023

I know this is not very helpful, but here is an error message:

Yojson.Json_error("Line 19063, bytes 25-45:\nInt overflow '4611686018427387928'") There was an error reading the file

It seems as if the parser doesn't properly process 64bit integers / numbers.

@davesnx
Copy link
Owner

davesnx commented Oct 7, 2023

Hey @SaculRennorb

I assume the json is {"int": 12313213} and the link of the playground is https://query-json.netlify.app/#eyJxdWVyeSI6Ii4iLCJqc29uIjoie1xuICBcImludFwiOiA0NjExNjg2MDEyXG59XG4ifQ%253D%253D.

Our JSON parser (yojson) doesn't support big integers for now, looking at jq there seems to have no limit.

I will try to adjust this,

Thanks for opening an issue <3

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

2 participants