All binaries
jq
ghcr.io/openotters/tools/jq:latestProcess JSON with jq expressions. Pass the expression as args, the JSON as stdin.
Usage
Process JSON with jq expressions. Upstream jq — full feature set (date functions, SQL-style operators, --slurpfile, etc.).
The agent invokes this BIN with the jq expression(s) as args
and the JSON document as stdin:
{
"args": [".name"],
"stdin": "{\"name\": \"Lyon\", \"country\": \"France\"}"
}
Multiple flags work too — jq's full CLI is available:
{
"args": ["-r", ".items[] | select(.age > 30) | .name"],
"stdin": "..."
}
See https://jqlang.github.io/jq/manual/ for the full expression language and flags.
Tags
4 tags- latest
- 1.8.1
- 1.8
- 1