Jq Playground API
https://api.findutils.com/api/tools/jq-playground/execute Returns the result of running a jq-style filter over a JSON document. Supports a jq subset: paths (.a.b, .[0], .[1:3], .[], .["a-b"]), pipes, map, select with ==, !=, >, >=, <, <= combined by and, or and not (jq truthiness: only false and null are false), sort_by/group_by/unique_by/min_by/max_by, keys/values/length/type/add/min/max/flatten/unique/reverse/sort, to_entries/from_entries/with_entries, has/contains/del, split/join/ltrimstr/rtrimstr, range/limit, + - * / arithmetic, the // fallback, and object/array/string construction. .[] yields an array rather than a stream, so .users[] | select(...) returns the matching elements as an array. A select that matches nothing gives result_type "empty". Not a full jq implementation: no reduce, try, foreach, recursive descent or user functions.
Request body
application/json-
json
string required
The JSON input document (text).
-
query
string optional
The jq filter, e.g. ".users[] | select(.age > 30) | .name". Default: "." (identity). Default
".".
Example arguments
Verified{
"json": {
"users": [
{
"name": "Ann",
"age": 31
}
]
},
"query": ".users[0].name"
} More Data tools
- Api Docs Generator Return API documentation generated from a list of endpoints, as Markdown (with table of contents, request/response examples)…
- Bookmarks Html To Csv Convert a browser bookmarks.html export from Chrome, Firefox, Edge, Safari or any other browser that writes the Netscape bookmark format…
- Bookmarks Json To Html Convert a bookmarks JSON file into a Netscape bookmarks.html that Chrome, Firefox, Edge and Safari import.
- Csv Dedupe Remove duplicate rows from a CSV or TSV table.
- Csv Diff Compare two CSV or TSV tables by key column and list the rows that were added, removed or changed - a table diff, not a line diff, so rows…
- Csv To Bookmarks Html Convert a CSV of links into a Netscape bookmarks.html file that Chrome, Firefox, Edge and Safari import.