←back to thread

700 points yen223 | 1 comments | | HN request time: 0.213s | source
Show context
pseufaux ◴[] No.42060817[source]
I'll add `plutil` to the list. It's great for reading plist files, but did you know it can parse json too?

/usr/bin/plutil -extract your.key.path raw -o - - <<< "$jsoninput"

(obviously, less useful now that `jq`is built in)

replies(2): >>42061504 #>>42064072 #
jonpalmisc ◴[] No.42061504[source]

    ; which jq
    /usr/bin/jq
    ; jq
    jq - commandline JSON processor [version 1.6-159-apple-gcff5336-dirty]
Wow. When did `jq` start shipping by default? TIL
replies(1): >>42065436 #
1. pseufaux ◴[] No.42065436[source]
Starting in macOS 15, it was quietly included.

Glad to spread the good word ;)