💾 Archived View for freeshell.de › tldr › jq.gmi captured on 2022-04-28 at 18:51:20. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
A command-line JSON processor that uses a domain-specific language.
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).