jq command for MoonX.
moonx cli/jq@0.2.9 [OPTION]... [FILTER] [FILE...]| Option | Description |
|---|---|
| -c, --compact-output | print compact JSON |
| -r, --raw-output | print strings without JSON quotes |
| -j, --join-output | raw output without result separators |
| -n, --null-input | evaluate once with null; input/inputs can still read |
| -s, --slurp | collect input values in an array |
| -R, --raw-input | read text lines; -Rs reads all text |
| -l, --logs | skip non-JSON lines (project extension) |
| --stream | emit incremental path/leaf and container-end events |
| --stream-errors | emit parse-error events and resume at the next parser buffer |
| -S, --sort-keys | sort object keys recursively |
| -e, --exit-status | return 1 for false/null, 4 for no result |
| -f, --from-file | read the first positional argument as a filter file |
| --arg NAME VALUE | bind a string variable |
| --argjson NAME JSON | bind a JSON variable |
| -L DIRECTORY | replace default module paths; repeated paths are searched in order |
| --indent N | indentation -1 (tabs) through 7 |
| --tab | indent with tabs |
| -C, --color-output | emit ANSI colors (JQ_COLORS customizes the palette) |
| -M, --monochrome-output | disable colors, including when -C is present |
| --help / --version | Show help / package version. |
printf '%s' '{"name":"Moon"}' | moonx cli/jq@0.2.9 -r '.name'
moonx cli/jq@0.2.9 -n -c '{ok: true, values: [1, 2]}'