4 ms·
The speed is not concern for me. I am wondering if there something better than `jq` in terms of syntax. Whenever I want to get something more that just prettify
by vasergen 6y ago
The speed is not concern for me. I am wondering if there something better than `jq` in terms of syntax. Whenever I want to get something more that just prettify json output in the console or simply get value by specific field name I have a problem, for me it is just difficult to remember jq syntax without looking into history. As well have in my notes links to examples like this one
https://mosermichael.github.io/jq-illustrated/dir/content.html https://mosermichael.github.io/jq-illustrated/dir/content.ht...
- davesnx 6y agoOne of the main ideas of query-json is to provide excelent errors. So, it would teach you by using the tool. and there are a few techniques to "discover" the schema of the json file, I trend to read with '.' or 'keys' and later keep going. I'm planning to implement a flag where each operation prints the internal state of the json, so you would see what are the "pipes". I will pick a few of your cheatsheet to implement next in q, Thanks!
- mumblemumble 6y agoFor my part, I've always wanted a tool that just replicates PostgreSQL's JSON syntax. That way I can have only one syntax to remember.
- bradly 6y agoCheck out jql [https://github.com/cube2222/jql https://github.com/cube2222/jql] and oj [https://github.com/ohler55/ojg https://github.com/ohler55/ojg]
- vasergen 6y agodefinitively will take a look, I've never heard of `jql` before, thanks
- aasasd 6y agoMight want to take a look at some of these alternatives: https://news.ycombinator.com/item?id=24470715 https://news.ycombinator.com/item?id=24470715
- xonix 6y agoMy humble attempt https://github.com/jsqry/jsqry-cli2 https://github.com/jsqry/jsqry-cli2