query-json icon indicating copy to clipboard operation
query-json copied to clipboard

Int overflow for 64 bit numbers

Open SaculRennorb opened this issue 2 years ago • 1 comments

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.

SaculRennorb avatar Oct 07 '23 11:10 SaculRennorb

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

davesnx avatar Oct 07 '23 17:10 davesnx