Chit Chat Across the Pond

CCATP #781 — Bart Busschots on PBS 157 of X — jq: Querying JSON with `jq`


Listen Later

In this week's episode of Programming By Stealth, Bart Busschots continues his instruction on learning more about how to use the jq language to query JSON files. We get into the thick of it as Bart teaches us three important jq concepts: filter chaining, operators, and functions.

To get there we learn about the literal values in JSON and jq and how only null and false are false. Armed with that, Bart explains the `not` function and once we put those concepts together, this ridiculous command will make perfect sense:

`jq -n 'true and true | not' # false`

I got such a kick out of that when I first read it in the shownotes earlier this week that I posted my enjoyment of it on Mastodon, and one of the actual developers of `jq` commented that he was excited to learn we were covering jq in Programming By Stealth!

The `any` and `all` functions are nearly as silly sounding but are equally useful. By the end of the episode, we can successfully query the Nobel Prize JSON file to show us all of the prizes won by anyone with the surname "Curie".

We even have three fun challenges at the end of this episode.

You can find Bart's fabulous tutorial shownotes at pbs.bartificer.net.

Read an unedited, auto-generated transcript: CCATP_2023_12_09

Join our Slack at podfeet.com/slack and look for the #pbs channel, and check out our pbs-student GitHub Organization. It's by invitation only but all you have to do is ask Allison!

...more
View all episodesView all episodes
Download on the App Store

Chit Chat Across the PondBy Allison Sheridan

  • 4.8
  • 4.8
  • 4.8
  • 4.8
  • 4.8

4.8

9 ratings


More shows like Chit Chat Across the Pond

View all
Mac Geek Gab — Apple Tips, Tricks, and Troubleshooting by Dave Hamilton, Pilot Pete & Adam Christianson

Mac Geek Gab — Apple Tips, Tricks, and Troubleshooting

836 Listeners

NosillaCast Apple Podcast by Technology with an EVER so slight Apple bias

NosillaCast Apple Podcast

164 Listeners

Mac Power Users by Relay

Mac Power Users

1,288 Listeners

Clockwise by Relay

Clockwise

250 Listeners

MacVoices by Chuck Joiner

MacVoices

33 Listeners

Let's Talk Apple by Bart Busschots

Let's Talk Apple

20 Listeners

Mac OS Ken by Ken Ray

Mac OS Ken

902 Listeners

Connected by Relay FM

Connected

568 Listeners

Taming the Terminal by Bart Busschots & Allison Sheridan

Taming the Terminal

21 Listeners

The Mac Show by British Tech Network

The Mac Show

47 Listeners

The Checklist by SecureMac by SecureMac

The Checklist by SecureMac

77 Listeners

Upgrade by Relay

Upgrade

1,219 Listeners

The Rebound by The Rebound

The Rebound

176 Listeners

In Touch with iOS by David Ginsburg

In Touch with iOS

30 Listeners

Programming By Stealth by Bart Busschots & Allison Sheridan

Programming By Stealth

15 Listeners

snobOS by Nica Montford and Terrance Gaines

snobOS

38 Listeners