Intro to jq
grep for JSON
Presented by:
lufthans
der.hans is a Free Software, technology and entrepreneurial veteran.
Hans is chairman of the Phoenix Linux User Group (PLUG); BoF organizer, jobs board maintainer, and jobs night organizer for the Southern California Linux Expo (SCaLE); and founder of the Free Software Stammtisch along with the Stammtisch Job Nights.
Currently leads a database support engineering team at Object Rocket, most likely anything Hans says publicly was not approved by $dayjob.
Want to parse JSON on the command line? Want a pipeable inline tool for JSON manipulation?
Today's APIs and databases feed us lots of JSON. It's a structured, line-independent data format, and our normal line-based tools such as grep, sed and awk fall a bit short.
jq understands JSON document format that's easy to fit into your data pipeline. It can parse, search and manipulate JSON documents.
This talk will cover an introduction to jq and using it to search JSON objects similar to how grep is used for plain text.
Attendees will learn:
- basic parts of JSON
- key search
- value matching
- string match
- using variables with jq
- conditionals
- regular expressions
- prettified JSON output
- Date:
- 2022 April 24 - 15:00
- Duration:
- 45 min
- Room:
- Code Lab
- Conference:
- LinuxFest Northwest 22
- Language:
- Track:
- Dev Tools
- Difficulty:
- 200-level
- Gaming With Robots
- Start Time:
- 2022 April 24 15:00
- Room:
- Hardware/Gaming
- Intro to jq
- Start Time:
- 2022 April 24 15:00
- Room:
- Code Lab
- Open Source - Year One:
- Start Time:
- 2022 April 24 15:00
- Room:
- Community