Data Processing
JSON Path Extractor
Query JSON with JSONPath or JMESPath-style expressions, inspect matched paths, and highlight extracted values in the original document
html· HTML resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/json-path-extractor' \
-H 'Content-Type: application/json' \
-d '{"jsonInput":"{\n \"users\": [\n { \"name\": \"Ada\", \"role\": \"admin\", \"score\": 9 },\n { \"name\": \"Linus\", \"role\": \"editor\", \"score\": 6 }\n ]\n}","queryExpressions":"$.users[?(@.role == \"admin\")]\n$.users[*].name","queryEngine":"jsonpath","displayMode":"highlighted-json","flattenArrays":true,"includeNullValues":false,"maxMatches":20}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/json-path-extractorParameters
| Name | Type | Required | Description |
|---|---|---|---|
| jsonInput | textarea | Yes | — |
| queryExpressions | textarea | No | Use one expression per line. Supports field access, array indexes, wildcards, and simple filters. |
| queryEngine | select | No | — |
| displayMode | select | No | — |
| flattenArrays | checkbox | No | — |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-json-path-extractor": {
"name": "json-path-extractor",
"description": "Query JSON with JSONPath or JMESPath-style expressions, inspect matched paths, and highlight extracted values in the original document",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=json-path-extractor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "json-path-extractor",
"arguments": {
"jsonInput": "{\n \"users\": [\n { \"name\": \"Ada\", \"role\": \"admin\", \"score\": 9 },\n { \"name\": \"Linus\", \"role\": \"editor\", \"score\": 6 }\n ]\n}",
"queryExpressions": "$.users[?(@.role == \"admin\")]\n$.users[*].name",
"queryEngine": "jsonpath",
"displayMode": "highlighted-json",
"flattenArrays": true,
"includeNullValues": false,
"maxMatches": 20
}
}
}Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).