direct-actions/jq Direct

Simple and robust jq action offering updated jq versions, YAML input/output conversions, input from command or text & more!

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
argumentsPass arguments directly to jqno""
debugAdd debug outputnofalse
filterjq filter (will be ignored if from-file is specified)no.
inputInput for jqno""
input-commandCommand run in bash, output will be used by jq as inputno""
input-filesOne or more filenames for jq to use as inputno""
input-yamlInput for jq in YAML format - will transform into JSON for jqno""
output-yamlOutput in YAML format - will transform jq JSON outputnofalse
quietSuppress JSON output when availablenofalse
versionVersion of jq - will retrieve if necessary, "" will use existing versionno1.7.1
arg(jq arg) set $name to the string value - specify as YAML mapno""
args(jq arg) positional string valuesno""
argjson(jq arg) set $name to the JSON value - specify is YAML mapno""
ascii-output(jq arg -a) output strings by only ASCII characters using escape sequencesnofalse
compact-output(jq arg -c) compact instead of pretty-printed outputnofalse
exit-status(jq arg -e) set exit status code based on the outputnofalse
from-file(jq arg -f) load filter from the fileno""
indent(jq arg) use n spaces for indentation (max 7 spaces)no""
join-output(jq arg -j) implies -r and output without newline after each outputnofalse
jsonargs(jq arg) positional JSON valuesno""
module-directory(jq arg -L) search modules from the directoryno""
null-input(jq arg -n) use null as the single input valuenofalse
raw-input(jq arg -R) read each line as string instead of JSONnofalse
raw-output(jq arg -r) output strings without escapes and quotesnofalse
raw-output0(jq arg) implies -r and output NUL after each outputnofalse
rawfile(jq arg) set $name to string contents of file - specify as YAML mapno""
seq(jq arg) parse input/output as application/json-seqnofalse
slurp(jq arg -s) read all inputs into an array and use it as the single input valuenofalse
slurpfile(jq arg) name file set $name to an array of JSON values read from the file - specify as YAML mapno""
sort-keys(jq arg -S) sort keys of each object on outputnofalse
stream(jq arg) parse the input value in streaming fashionnofalse
stream-errors(jq arg) implies --stream and report parse error as an arraynofalse
tab(jq arg) use tabs for indentationnofalse
unbuffered(jq arg) flush output stream after each outputnofalse
namedescription
is-jsonIs output JSON - "true" or "false"
outputOutput from jq command