JSON路径提取器
使用JSONPath表达式从JSON对象中提取值。非常适合从复杂的嵌套JSON结构、API响应和配置文件中提取特定数据。
API-Dokumentation
Request-Endpunkt
POST /de/api/tools/json-path-extractor
Request-Parameter
| Parameter-Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| jsonInput | textarea | Ja | - |
| jsonPaths | textarea | Nein | JSONPath expressions to extract values. Examples: $.* - All values $.users[*].name - All user names $.data.items[*].price - All item prices Leave empty to extract all values |
| outputFormat | select | Ja | - |
| includePaths | checkbox | Nein | Include the full path to each extracted value |
| flattenArrays | checkbox | Nein | Flatten extracted arrays into individual values |
| preserveOrder | checkbox | Nein | Maintain the original order of values in the JSON |
| nullValues | checkbox | Nein | Include null values in the extraction results |
Antwortformat
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Text:
Text
MCP-Dokumentation
Fügen Sie dieses Tool zu Ihrer MCP-Server-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-json-path-extractor": {
"name": "json-path-extractor",
"description": "使用JSONPath表达式从JSON对象中提取值。非常适合从复杂的嵌套JSON结构、API响应和配置文件中提取特定数据。",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=json-path-extractor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
Sie können mehrere Tools verketten, z.B.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, maximal 20 Tools.
Wenn Sie auf Probleme stoßen, kontaktieren Sie uns bitte bei [email protected]