You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been facing an issue when I try to process a json file with large integers, it changes the value of last 2 digits.
I'm trying to convert the json to jsonl using this command: jstream -d 1 < #{directory}#{json_file_name} > #{directory}#{json_file_name}l
An integer Id like this "campaignId":144126219108390099 is converted to this: "campaignId":144126219108390080
Just wondering if this is an integer size limitation like Jq jqlang/jq#369
Thanks!!
The text was updated successfully, but these errors were encountered:
@fabioglopes - For the record, jm (based on "JSON Machines") preserves numerical accuracy. E.g.
jm <<< '{"campaignId":144126219108390099, "float": 1.20000000000000000000000000005 }'
144126219108390099
1.20000000000000000000000000005
Likewise, the "development" (i.e. master) version of jq has for some time now included enhancements that preserve the precision of numbers, at least until some arithmetic operation is performed on them.
I've been facing an issue when I try to process a json file with large integers, it changes the value of last 2 digits.
I'm trying to convert the json to jsonl using this command:
jstream -d 1 < #{directory}#{json_file_name} > #{directory}#{json_file_name}l
An integer Id like this "campaignId":144126219108390099 is converted to this: "campaignId":144126219108390080
Just wondering if this is an integer size limitation like Jq jqlang/jq#369
Thanks!!
The text was updated successfully, but these errors were encountered: