您无法更改其
jq行为-目前,相关功能请求仍处于打开状态-但您
可以 在检索到数字后重新格式化它们。例如:
json='{"decimal":0.00001}'decimal=$(jq '.decimal' <<<"$json")decimal_f=$(awk -v decimal="$decimal" 'BEGIN { printf("%fn", decimal) }' </dev/null)echo "JQ emitted $decimal; reformatted as $decimal_f"


