Earlier quoted context omitted.
Yes, I don't understand how people end up with assertions that the filename is a require argument. At least we've got /dev/stdin or /proc/self/fd/0 as workarounds.
Much Unix software today is written by people who really don't appreciate or understand Unix. It leads to things like Homebrew (early on, at least) completely taking over and breaking /usr/local; to command-line utilities using a single dash (-) precending both short and long option names (granted, --long-opts is a GNUism, but it's a well-established standard); commands that output color by default even when the outp…
Q: A faster re-implementaiton of jq written in Reason Native/OCaml
81–90 of 196 posts
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#82https://github.com/fiatjaf/awesome-jq
https://github.com/TomConlin/json2xpath
https://github.com/antonmedv/fx
https://github.com/fiatjaf/jiq
https://github.com/jmespath/jp
https://github.com/cube2222/jql
https://github.com/borkdude/jet
https://github.com/jzelinskie/faq
https://github.com/dflemstr/rq
Personally I think that next time I might just fire up Hy and use its functional capabilities.
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#83Are we sure it should get a single-letter 'q' binary name though? Docs seem to point that it's short for 'query-json'? Why not call it 'query-json' and let the user decide that as a shell alias or whatever. Even the ubiquitous 'ls' and 'cd' are two characters.
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#841) refuses to operate on stdin; requires a filename argument, which is so irritating. 2) doesn't accept values that jq accepts % time jq -r '[expression]'
Nothing that can be fixed later?
The incompatibility is apparently due to the fact that jq is happy with a concatenation of JSON objects and q is not. For example {'foo':1}{'foo':2} as opposed to [{'foo':1},{'foo':2}]
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#85I'd long for such a tool with a better comprehensible query language.
It is more verbose, like you get the size of something with array:size or map:size functions, so it is more readable
I am implementing it in Xidel 0.9.9+: http://www.videlibri.de/xidel.html
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#86I'd long for such a tool with a better comprehensible query language.
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#87The 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-…
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#88Great! Now improve the syntax!
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#891) refuses to operate on stdin; requires a filename argument, which is so irritating. 2) doesn't accept values that jq accepts % time jq -r '[expression]'
That's super weird, I think most people use jq for bash pipelines.
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#90Earlier quoted context omitted.
Nothing that can be fixed later?
Probably. You tell us :=) The incompatibility is apparently due to the fact that jq is happy with a concatenation of JSON objects and q is not. For example {'foo':1}{'foo':2} as opposed to [{'foo':1},{'foo':2}]
I certantly didn't use it, but I see where it's useful, will implement it soon.