jq command for MoonX.
printf '%s' '{"name":"Moon"}' | moonx cli/jq -r '.name'
moonx cli/jq -n -c '{ok: true, values: [1, 2]}'
moonx cli/jq -c '.items[]' input.json| Option | Description |
|---|---|
| -c, --compact-output | print compact JSON |
| -n, --null-input | evaluate once with null; input/inputs can still read |
| -s, --slurp | collect input values in an array |
| -r, --raw-output | print strings without JSON quotes |
| -R, --raw-input | read text lines; -Rs reads all text |
| -e, --exit-status | return 1 for false/null, 4 for no result |
| -f, --from-file | read the first positional argument as a filter file |
| --help | Show help. |
| --version | Show the version. |