Development
An interactive JSONPath REPL that runs multi-step query pipelines against any JSON. Write one JSONPath expression per line (e.g. $..book[?(@.price<10)] then $[0:5]) and see each step's matches with counts, paths, and values — plus a shareable URL that encodes your data and pipeline. Supports recursive descent ($..), wildcards ([*]), filters ([?(@.price<10)]), slices ([0:5:2]), and negative indices.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/jsonpath-repl-playground' \
-H 'Content-Type: application/json' \
-d '{"json":"{\n \"store\": {\n \"book\": [\n { \"category\": \"reference\", \"author\": \"Nigel Rees\", \"title\": \"Sayings of the Century\", \"price\": 8.95 },\n { \"category\": \"fiction\", \"author\": \"Evelyn Waugh\", \"title\": \"Sword of Honour\", \"price\": 12.99 },\n { \"category\": \"fiction\", \"author\": \"Herman Melville\", \"title\": \"Moby Dick\", \"price\": 8.99 },\n { \"category\": \"fiction\", \"author\": \"J. R. R. Tolkien\", \"title\": \"The Lord of the Rings\", \"price\": 22.99 }\n ],\n \"bicycle\": { \"color\": \"red\", \"price\": 19.95 }\n }\n}","pipeline":"$..book[?(@.price < 10)]\n$[*].title","mode":"values","maxResults":100,"historyTitle":"Cheap books — titles"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/jsonpath-repl-playground| Name | Type | Required | Description |
|---|---|---|---|
| json | textarea | Yes | — |
| pipeline | textarea | Yes | — |
| mode | select | No | — |
| maxResults | number | No | — |
| historyTitle | text | No | Optional label saved with this query so you can find it again. |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-jsonpath-repl-playground": {
"name": "jsonpath-repl-playground",
"description": "An interactive JSONPath REPL that runs multi-step query pipelines against any JSON. Write one JSONPath expression per line (e.g. $..book[?(@.price<10)] then $[0:5]) and see each step's matches with counts, paths, and values — plus a shareable URL that encodes your data and pipeline. Supports recursive descent ($..), wildcards ([*]), filters ([?(@.price<10)]), slices ([0:5:2]), and negative indices.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=jsonpath-repl-playground",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "jsonpath-repl-playground",
"arguments": {
"json": "{\n \"store\": {\n \"book\": [\n { \"category\": \"reference\", \"author\": \"Nigel Rees\", \"title\": \"Sayings of the Century\", \"price\": 8.95 },\n { \"category\": \"fiction\", \"author\": \"Evelyn Waugh\", \"title\": \"Sword of Honour\", \"price\": 12.99 },\n { \"category\": \"fiction\", \"author\": \"Herman Melville\", \"title\": \"Moby Dick\", \"price\": 8.99 },\n { \"category\": \"fiction\", \"author\": \"J. R. R. Tolkien\", \"title\": \"The Lord of the Rings\", \"price\": 22.99 }\n ],\n \"bicycle\": { \"color\": \"red\", \"price\": 19.95 }\n }\n}",
"pipeline": "$..book[?(@.price < 10)]\n$[*].title",
"mode": "values",
"maxResults": 100,
"historyTitle": "Cheap books — titles"
}
}
}Questions or issues? Contact [email protected]