News for hackers. Stuff that matters.
Re:Jid – Drill down JSON data incrementally by dorianm on Saturday December 03, 2016 @07:11PM (#13098130)
How would you do a `data.keys.sort` with jq? Here I don't have to learn a new programming language or hack around with UNIX pipes ;)
Re:Jid – Drill down JSON data incrementally by hyperpallium on Saturday December 03, 2016 @07:40PM (#13098221)
jq has sort and sort_by(exp). Its | is a jq operator, not a unix pipe.

It's true it's a new lang, and although simple, I often have to look things up.

It might be nice to have a jq REPL, so needn't quote, and easier to keep state around.

Re:Jid – Drill down JSON data incrementally by voltagex_ on Saturday December 03, 2016 @11:26PM (#13098787)
I find jq syntax tricky, and it's difficult to work out what I need to get to specific elements. I guess I'm more used to things like XPath. Seconding the request for a REPL
Re:Jid – Drill down JSON data incrementally by lumpypua on Saturday December 03, 2016 @07:28PM (#13098187)
`keys|sort` in jq.
Re:Jid – Drill down JSON data incrementally by dorianm on Saturday December 03, 2016 @07:39PM (#13098217)
Nice! Thanks