📜  jq 列出顶部节点 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:23.860000             🧑  作者: Mango

代码示例1
echo '{"node1":"foo", "node2":"bar","node3": {"inner-node": "baz"}}' | jq '. |=keys'

[
  "node1",
  "node2",
  "node3"
]