Image missing.
Jqfmt like gofmt, but for jq

Bluestein

created: July 21, 2025, 5:16 p.m. | updated: July 22, 2025, 4:59 a.m.

These days, there's about as much jq in that one-liner as there is bash. I wrote jqfmt to help add line breaks in sensible locations while reading (or writing!) Reading search results is a nightmare since jq itself is, among other things, a formatter. 𝄢 echo '{one: .two, three: [.four, .five, [.fivetwo, .fivethree]], six: map(select((.seven | .eight | .nine)))}' | jqfmt -ob { one: .two, three: [.four, .five, [.fivetwo, .fivethree]], six: map(select((.seven | .eight | .nine))) }Nice! See alsohandle func definitionshandle func definitions quickly format jq by appending fmt to jq on the CLILicenseThis project is licensed under the MIT License.

2Ā weeks ago: Hacker News: Front Page