💾 Archived View for freeshell.de › tldr › jq.gmi captured on 2023-11-14 at 09:46:11. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

jq

A command-line JSON processor that uses a domain-specific language.

More information.

jq . {file.json}
jq '.[]' {file.json}
jq '.[] | select(.{key_name} == {value})'
jq --slurp . {file.json}
jq '.[0]' {file.json}
cat {file.json} | jq 'map(.{key_name})'
cat {file.json} | jq '{{my_new_key}: .{key_name}, {my_other_key}: .{other_key_name}}'
cat {file.json} | jq --raw-output '"some text: \(.{key_name})"'
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY