jq reformatting decimals in scientific notation — can this be avoided?

前端 未结 3 2081
轻奢々
轻奢々 2020-12-19 05:23

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 w

3条回答
  •  轮回少年
    2020-12-19 05:37

    A commit made on Oct 21, 2019, ensures that jq will generally preserve the "external" format of numbers. There are some exceptions, e.g. superfluous leading 0s.

    The following page gives details about installing an "unreleased" version of jq: https://github.com/stedolan/jq/wiki/Installation

提交回复
热议问题