jq reformatting decimals in scientific notation — can this be avoided?
问题 I found difference between json-data created by JavaScipt and via jq with bash (and other programming languages). With JavaScript I can create decimal numbers with up to six digits after the point, even when I use float() . But with jq its different, because adding a decimal value takes four digits after the decimal point only. My problem is that I need decimal numbers to store in SQL, with up to six digits after the point. Example: $ JSON='{"decimal":0.00001}' $ echo "$JSON" | jq . {