| ▲ | polshaw 9 hours ago | ||||||||||||||||
Is there an option for it to read the contents from a pipe? that's by far my biggest use for the jq app. | |||||||||||||||||
| ▲ | simonw 8 hours ago | parent | next [-] | ||||||||||||||||
There's a C# CLI app in the repo: https://github.com/j-brooke/FracturedJson/blob/main/Fracture...
It looks like both the JavaScript version and the new Python C# wrapper have equivalent CLI tools as well. | |||||||||||||||||
| ▲ | ruuda 6 hours ago | parent | prev | next [-] | ||||||||||||||||
RCL (https://github.com/ruuda/rcl) pretty-prints its output by default. Pipe to `rcl e` to pretty-print RCL (which has slightly lighter key-value syntax, good if you only want to inspect it), while `rcl je` produces json output. It doesn’t align tables like FracturedJson, but it does format values on a single line where possible. The pretty printer is based on the classic A Prettier Printer by Philip Wadler; the algorithm is quite elegant. Any value will be formatted wide if it fits the target width, otherwise tall. | |||||||||||||||||
| ▲ | vhcr 4 hours ago | parent | prev | next [-] | ||||||||||||||||
I don't know, but you can always use <() process substitution to create a temp file. | |||||||||||||||||
| ▲ | 8 hours ago | parent | prev | next [-] | ||||||||||||||||
| [deleted] | |||||||||||||||||
| ▲ | pimlottc 7 hours ago | parent | prev | next [-] | ||||||||||||||||
You can (usually) specify the input file name as “-“ (single hyphen) to read from stdin | |||||||||||||||||
| |||||||||||||||||
| ▲ | tuetuopay 8 hours ago | parent | prev [-] | ||||||||||||||||
this would be amazing to be chained with jq, that was my first thought as well. | |||||||||||||||||