Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

jq list top nodes

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

[
  "node1",
  "node2",
  "node3"
]
 
PREVIOUS NEXT
Tagged: #jq #list #top #nodes
ADD COMMENT
Topic
Name
7+6 =