Data Processing
Query JSON with JSONPath or JMESPath-style expressions, inspect matched paths, and highlight extracted values in the original document
Call this tool from your code in three languages.
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}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/json-path-extractor| 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 | — |
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-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"
}
}
}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": "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
}
}
}| includeNullValues | checkbox | No | — |
| maxMatches | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]