Development
Eine interaktive JSONPath-REPL, die mehrstufe Abfrage-Pipelines auf jedem JSON ausführt. Schreiben Sie einen JSONPath-Ausdruck pro Zeile (z. B. $..book[?(@.price<10)] dann $[0:5]) und sehen Sie die Treffer jedes Schritts mit Anzahlen, Pfaden und Werten — plus eine teilbare URL, die Ihre Daten und Pipeline kodiert. Unterstützt rekursiven Abstieg ($..), Wildcards ([*]), Filter ([?(@.price<10)]), Slices ([0:5:2]) und negative Indizes.
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'https://api.elysiatools.com/de/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"}'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/jsonpath-repl-playground| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| json | textarea | Ja | — |
| pipeline | textarea | Ja | — |
| mode | select | Nein | — |
| maxResults | number | Nein | — |
| historyTitle | text | Nein | Optional label saved with this query so you can find it again. |
HTML-Ergebnis
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-jsonpath-repl-playground": {
"name": "jsonpath-repl-playground",
"description": "Eine interaktive JSONPath-REPL, die mehrstufe Abfrage-Pipelines auf jedem JSON ausführt. Schreiben Sie einen JSONPath-Ausdruck pro Zeile (z. B. $..book[?(@.price<10)] dann $[0:5]) und sehen Sie die Treffer jedes Schritts mit Anzahlen, Pfaden und Werten — plus eine teilbare URL, die Ihre Daten und Pipeline kodiert. Unterstützt rekursiven Abstieg ($..), Wildcards ([*]), Filter ([?(@.price<10)]), Slices ([0:5:2]) und negative Indizes.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=jsonpath-repl-playground",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"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"
}
}
}Fragen oder Probleme? Kontakt: [email protected]