🌐
IBM
ibm.com › docs › en › oefzos
JQ Example Usage
We cannot provide a description for this page right now
🌐
GitHub
gist.github.com › olih › f7437fb6962fb3ee9fe95bda8d2c8fa4
jq Cheet Sheet · GitHub
jq Cheet Sheet. GitHub Gist: instantly share code, notes, and snippets.
🌐
QuickRef.ME
quickref.me › home › json cheat sheet & quick reference
JSON Cheat Sheet & Quick Reference
This is a quick reference cheat sheet for understanding and writing JSON format configuration files.
🌐
Zendesk Developer Docs
developer.zendesk.com › documentation › integration-services › developer-guide › jq-cheat-sheet
jq cheat sheet | Zendesk Developer Docs
This article provides example jq expressions you can use in the expr parameter. If you're new to jq, you can use these examples as a starting point when writing your own expressions. You can test the expressions using the jq play site or the jq command-line tool.
🌐
GitHub
gist.github.com › talwrii › 4fe822e3f43280e9ddc166322a3b96c7
jq cheatsheet · GitHub
jq cheatsheet · Raw · jqcheatsheet.md · jq 'map(.foo)' [ { foo: 1 }, { foo: 2 } ] [1, 2] jq '.[] | .foo' [ { foo: 1 }, { foo: 2 } ] 1, 2 · jq '.[1:2]' [ { foo: 1 }, { foo: 2 } ] { foo: 2 } jq 'map({ a, b })' [ { a: 1, b: 2, c: 3 }, ...] [ { a: 1, b: 2 }, ...] jq 'with_entries(.value |= fromjson)' --sort-keys ·
🌐
Cht
cht.sh › jq
cheat.sh/jq
# Output a JSON file, in pretty-print format: jq # Output all elements from arrays # (or all key-value pairs from objects) in a JSON file: jq .[] # Use jq to pretty-print JSON jq '.' file.json # Filter JSON object by extracting a specific field jq '.fieldName' file.json # Filter JSON array ...
🌐
jq
jqlang.org
jq
jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.
🌐
Eliatra
eliatra.com › home › blog › json processing for the command line with jq
JSON Processing for the Command Line with jq
November 10, 2022 - https://stedolan.github.io/jq/manual/ https://lzone.de/cheat-sheet/jq · https://www.youtube.com/watch?v=FSn_38gDvzM · Data Privacy and Digital Sovereignty: Why MEOD Is the Right OpenSearch Choice · Data privacy is more important than ever. As global tensions rise and digital sovereignty becomes a growing concern in the EU, organizations are increasingly rethinking where and how their data is stored.
Find elsewhere
🌐
DevTools Daily
devtoolsdaily.com › cheatsheets › jq
Cheatsheet: JQ
Cheatsheets · /JQ · Basic operations · Identity operator (.) . Object identifier/index · .name .address.city · Generic object index · .["name"] .address["postal-code"] .["address"]["postal-code"] Array operations · Array index · .car.options[1] .[1] Array/string slice ·
🌐
SANS Institute
sans.org › cybersecurity posters and cheat sheets › json and jq quick start guide
JSON and jq Quick Start Guide | SANS Institute
This guide is a supplement to SANS FOR572: Advanced Network Forensics and Analysis. It covers the basics of JSON and some of the fundamentals of the jq utility. The jq utility filters, parses, formats, and restructures JSON--think of it as sed, awk, and grep, but for JSON.
🌐
Gibiansky
andrew.gibiansky.com › blog › command-line › jq-primer
jq Primer: Munging JSON Data - Andrew Gibiansky
December 24, 2015 - Here we use the -s option, which tells jq to treat the entire file as a single array, and applying its transformation to the array as a whole, rather than applying the transformation to each element individually.
🌐
Docsity
docsity.com › home › berea college › computer programming › cheat sheet
JQ Cheat Sheet: Types and Values | Cheat Sheet Computer Programming | Docsity
March 5, 2018 - $loc Produces an object with a “file” key and a “line” key add Produces the summed elements of the input array any, any( foo ) Produces true if any of the elements of the input array (resp foo ) is true all, all( foo ) Produces true ...
🌐
Common Goal
cmngoal.com › jq-cheatsheet
Jq Quick Reference Cheat Sheet
March 16, 2025 - Explore an extensive catalog of in-depth jq quick reference cheat sheet with practical examples
🌐
Marco
marco.ninja › blog › notes › technology › jq › jq-cheatsheet
JQ Cheatsheet | marco.ninja
October 26, 2025 - Wrapping multiple json objects into a list is quite easy, just pass them to jq -s.
🌐
Reddit
reddit.com › r › devops › comments › naua1w › jq_equivalent_command_for_jmespath_cheatsheet
r/devops - jq equivalent command for jmespath cheatsheet
May 12, 2021 -

I was looking at this jmespath tutorial and I am wondering if there is something out there that shows the equivalent jq command for jmespath. For example (to get the value of James),

{
"people": [
{"first": "James", "last": "d"},
{"first": "Jacob", "last": "e"},
{"first": "Jayden", "last": "f"},
{"missing": "different"}
],
"foo": {"bar": "baz"}
}

The jmespath query:

people[*].first | [0]

And in jq, I have something like this:

.people[] | select(.first == "James") | .first

Is there some cheatsheet that shows the equivalent jq command for jmespath? Similar to the above example. Thanks.

🌐
Tech Vomit
techvomit.net › posts › jq cheatsheet
JQ Cheatsheet | Tech Vomit
Loop over JSON array This example will print all of the values associated with the name key: sample='[{"name":"foo"},{"name":"bar"}]' for row in $(echo "${sample}" | jq -r '.[] | @base64'); do echo ${row} | base64 --decode | jq -r '.name' done Resource: https://www.starkandwayne.com/blog/bash-for-loop-over-json-array-using-jq/ Get object based on value of JSON variable jq '.[] | select(.location=="Stockholm")' json { "location": "Stockholm", "name": "Walt" } { "location": "Stockholm", "name": "Donald" } Resource: https://stackoverflow.com/questions/18592173/select-objects-based-on-value-of-variable-in-object-using-jq Get keys of object jq 'keys' blob.json Get values of array object jq '.[] | values' blob.json
🌐
Nonbleedingedge
nonbleedingedge.com › cheatsheets › jq.html
jq JSON Cheatsheet — NonBleedingEdge documentation
jq JSON Cheatsheet · Edit on GitHub · jq is like sed for JSON data · jq Manual (development version) JSON - Introduction · JSON Schema enables the confident and reliable use of the JSON data format. JSON Online · $ sudo dnf install jq # Fedora $ brew install jq # MacOS $ winget install jqlang.jq # Windows $ winget upgrade jq -s winget # Upgrading on Windows ·