---
title: 'Intro to jq: grep for JSON'
osem_url: https://osem.seagl.org/conferences/seagl2021/program/proposals/832
beginning: '2021-11-05T10:50:00.000-07:00'
end: '2021-11-05T11:20:00.000-07:00'
resources:
  internet_archive_identifier: SeaGL2021-der_hans-Intro_to_jq_grep_for_JSON
  slides_url: https://lufthans.com/Akten/Presentations/2021/SeaGL/SeaGL.Intro_to_jq__grep_for_JSON.2021Nov05.pdf
presenters:
- name: der.hans
  affiliation: Object Rocket
  osem_url: https://osem.seagl.org/users/363
  gravatar_id: 26d7f047c161637f6f5459bfad4d5e32
  biography: |-
    der.hans is a Free Software, technology and entrepreneurial veteran.

    He's chairman of the Phoenix Linux User Group (PLUG), BoF organizer for the Southern California Linux Expo (SCaLE), and founder of the Free Software Stammtisch and Stammtisch Job Nights.

    Currently, he's a CDE manager at Object Rocket. Most likely anything he says publicly was not approved by $dayjob.

    <https://floss.social/@FLOX_advocate>
---

Want to parse JSON on the command line?
Want a pipeable inline tool for JSON manipulation?

jq is a command line tool, 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
* date handling
* conditionals
* regular expressions
* prettified JSON output
* plain JSON output
* non JSON output
