Chit Chat Across the Pond

CCATP #784 — Bart Busschots on PBS 159 of X - jq: Building Data Structures


Listen Later

In this very meaty episode of Programming By Stealth, Bart Busschots teaches us how to build data structures using jq with JSON files. We're not just querying existing data, we're rebuilding the data the way we want to see it. We learn how to build strings with interpolation, which I find is a very odd word to describe the process. It's really like concatenation in Excel, but maybe that's just me.

We build arrays using jq, and even convert between strings and arrays with the `split` and `join` commands. We build dictionaries in a syntax that is simple and elegant. We also build dictionaries from strings using `capture` with Regular Expressions.

We learn not to do string formatting and escaping using `@` – for example `@csv` can automatically create comma-separated values data for us and @uri can escape characters for us in a URL we build using jq.

Like I said, it's a meaty episode but Bart and I both enjoyed the lesson quite a bit.

You can find Bart's fabulous tutorial shownotes at pbs.bartificer.net. And just in case I forgot to mention it earlier, remember that we now have transcripts with chapter breaks. This means you can jump pretty easily to a topic to reread exactly how Bart explained something. You even get a time stamp of when he talked on that subject, allowing you to easily skim to the portion of the audio you want to rehear for clarification. All thanks to the magic of Auphonic. Ok, it's not magic, but it _feels_ like magic!

Read an unedited, auto-generated transcript: CCATP_2024_01_20

...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

826 Listeners

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

NosillaCast Apple Podcast

158 Listeners

MacVoices by Chuck Joiner

MacVoices

33 Listeners

Mac OS Ken by Ken Ray

Mac OS Ken

891 Listeners

MacBreak Weekly (Audio) by TWiT

MacBreak Weekly (Audio)

2,013 Listeners

Mac Power Users by Relay

Mac Power Users

1,280 Listeners

The CultCast by America's favorite Apple Podcast

The CultCast

1,163 Listeners

Macworld Podcast by Foundry

Macworld Podcast

305 Listeners

Clockwise by Relay

Clockwise

249 Listeners

Upgrade by Relay

Upgrade

1,192 Listeners

AppleInsider Podcast by AppleInsider

AppleInsider Podcast

957 Listeners

Taming the Terminal by Bart Busschots & Allison Sheridan

Taming the Terminal

20 Listeners

The Checklist by SecureMac by SecureMac

The Checklist by SecureMac

67 Listeners

Programming By Stealth by Bart Busschots & Allison Sheridan

Programming By Stealth

14 Listeners

9to5Mac Daily by 9to5Mac

9to5Mac Daily

499 Listeners

Techmeme Ride Home by Brian McCullough

Techmeme Ride Home

942 Listeners