json格式化

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
echo '{"kind": "Service", "apiVersion": "v1", "status": {"loadBalancer": true}}'|jq .
{
  "kind": "Service",
  "apiVersion": "v1",
  "status": {
    "loadBalancer": true
  }
}

作者:网易云
链接:https://www.zhihu.com/question/20057446/answer/489588448
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。