#TILpython -m json.tool my_json.json to prettify json at the cli. i've done such shenanigans in the interpreter but never considered executing it with -m like one might for a temporary HTTP server or other niceties.
Tonight I’m playing with #rq, a tool originally intended as a #jq replacement using #Rego as its query language, but which eventually grew to be useful for format transformations, and now a full-blown #scripting environment. All powered by #OPA. Madness, obviously, but just the right kind of madness.
Not so known #jq fact: Last stable release was in 2018 😬
Since then there has been lost of bug fixes and improvements but the maintainers ran out of interest and stream. There has been a few attempts at creating a new org that have stalled. But last week the original author stedolan show up and blessed the new org and transfer the repo to https://github.com/jqlang. We're currently working on cleaning up and fixing broken CI, etc and hopefully there will be a new release! 🥳
@beekir I could dump my #QuodLibet library to #JSON and then process that with #jq to generate my jukebox page, but I'd have to update each album to get accurate label/release information from MusicBrainz.
New post: Improving my interactive #jq workflow with ijq, #bash and #tmux.
I'm a big fan of ijq and how it allows me to explore #JSON data interactively with jq expressions. With a small script I have improved my workflow by being able to capture the jq expression from ijq and use it easily on the command line.