IBM
ibm.com › docs › en › oefzos
JQ Example Usage
We cannot provide a description for this page right now
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.
LinkedIn
linkedin.com › posts › projectdiscovery_pro-tip-use-nucleis-json-extractor-with-activity-7403917018288001024-yQ47
Nuclei JSON Extractor Cheat Sheet with jq Syntax
We cannot provide a description for this page right now
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.
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.
Cameronnokes
cameronnokes.com › blog › jq-cheatsheet
JQ cheatsheet - Cameron Nokes
August 5, 2020 - A cheatsheet of common jq commands
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.
DevOps.dev
blog.devops.dev › json-filter-with-jq-f7a7b42218a4
JSON filter with jq. Beginners article to start analyzing… | by Charles Vissol | DevOps.dev
October 14, 2024 - Beginners article to start analyzing JSON files with jq tool.
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 ·