2
我有input_file
:如何防止jq自动将double转换为int?
{"hi":48.0, "yep":48.123}
我运行这个
jq . <input_file> output_file
cat output_file
我的输出:
{
"yep": 48.123,
"hi": 48
}
我想输出是
{
"yep": 48.123,
"hi": 48.0
}
如何防止jq自动将我的double值转换为int?
现在有一些东西:https://gist.github.com/pkoppstein/d06a123f30c033195841 – tripleee