jq command for MoonX.
moonx cli/jq@0.2.5 [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; do not read inputs |
| -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) |
| -S, --sort-keys | sort object keys recursively |
| -e, --exit-status | return 1 for false/null, 4 for no result |
| -f, --from-file FILE | read the filter from FILE |
| --arg NAME VALUE | bind a string variable |
| --argjson NAME JSON | bind a JSON variable |
| --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.5 -r '.name'
moonx cli/jq@0.2.5 -n -c '{ok: true, values: [1, 2]}'