Search notes:

jq: keys

The jq function keys returns the keys of an object as an array:
$ echo '{"obj": {"x": 1, "y": 2}, "num": 42, "txt": "helo world"}' | jq keys
[
  "num",
  "obj",
  "txt"
]

Index