3 ms·
I have been using jq for years and still can't get it to work quite how I would expect it to. kubectl's jsonpath seems just about workable.
by alexellisuk 7y ago
I have been using jq for years and still can't get it to work quite how I would expect it to. kubectl's jsonpath seems just about workable.
- jcims 7y agoI don't know what the term would be, mental model, but I just can't get jq to click. Mostly because i only need it every once in a while. It's frustrating for me because it seems quite powerful.
- loeg 7y agoI tend to only use it for relatively simpler queries than it is capable of. Ditto regular expressions. But I do not find myself missing advanced features of either very often. If I run out of my ability with jq, the manual page and playing around with the query sometimes illuminates the correct answer. And if not, it's often time (for me) to switch to using a less ephemeral program anyway.
- Rapzid 7y agoI like jq for simple stuff which is what I mostly use it for. Whenever I have to dive into the documentation to do something complicated I die a bit on the inside. Give something like this a go if you know javascript: https://www.npmjs.com/package/jsling https://www.npmjs.com/package/jsling
- kbrazil 7y agoI have the same issue with jq. I need to use my google fu to figure out how to do anything more than a simple select. I created jello[0], which uses python list and dict syntax to filter JSON. Here's a blog post[1] I wrote that shows how it can be used. [0] https://github.com/kellyjonbrazil/jello https://github.com/kellyjonbrazil/jello [1] https://blog.kellybrazil.com/2020/03/25/jello-the-jq-alternative-for-pythonistas/ https://blog.kellybrazil.com/2020/03/25/jello-the-jq-alterna...