相关疑难解决方法(0)

如何在shell脚本中打印JSON?

是否有(Unix)shell脚本以人类可读的形式格式化JSON?

基本上,我希望它改变以下内容:

{ "foo": "lorem", "bar": "ipsum" }
Run Code Online (Sandbox Code Playgroud)

...进入这样的事情:

{
    "foo": "lorem",
    "bar": "ipsum"
}
Run Code Online (Sandbox Code Playgroud)

unix format command-line json pretty-print

2905
推荐指数
46
解决办法
116万
查看次数

标签 统计

command-line ×1

format ×1

json ×1

pretty-print ×1

unix ×1