JQ

From DWIKI
Revision as of 13:25, 13 April 2026 by Tony (talk | contribs)

JSON processor

Links

Related tools

  • gron
  • yq

Examples

get value of just one field, by name

jq '.[].fieldname'

or when hyphen in name

jq '.[]."field-name"'

or just

jq '.fieldname'

FAQ

Error messages

parse error: Invalid numeric literal at line 1

In case of python outpout try

print(json.dumps(yourjson))