How can I prevent jq from truncating long decimal values?
For example:
echo '18302628978110292481' | jq .
result: 18302628978110292000
How can I prevent jq from truncating long decimal values?
For example:
echo '18302628978110292481' | jq .
result: 18302628978110292000
Javascript does not support such big numbers and so does
jq
. The integer size is2^53
. Check thisTo make it work, you'll need to treat them as strings: