JQ: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tag: wikieditor
Tony (talk | contribs)
mNo edit summary
Tag: wikieditor
Line 19: Line 19:
or just
or just
  jq '.fieldname'
  jq '.fieldname'
=FAQ=
==Error messages==
===parse error: Invalid numeric literal at line 1===
In case of python outpout try
print(json.dumps(yourjson))

Revision as of 15:04, 21 January 2026

JSON processor

Links

Related tools

  • gron
  • yq

Examples

get values of just one field

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))