JSON路径提取器
使用JSONPath表达式从JSON对象中提取值。非常适合从复杂的嵌套JSON结构、API响应和配置文件中提取特定数据。
Documentation de l'API
Point de terminaison de la requête
POST /fr/api/tools/json-path-extractor
Paramètres de la requête
| Nom du paramètre | Type | Requis | Description |
|---|---|---|---|
| jsonInput | textarea | Oui | - |
| jsonPaths | textarea | Non | 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 | Oui | - |
| includePaths | checkbox | Non | Include the full path to each extracted value |
| flattenArrays | checkbox | Non | Flatten extracted arrays into individual values |
| preserveOrder | checkbox | Non | Maintain the original order of values in the JSON |
| nullValues | checkbox | Non | Include null values in the extraction results |
Format de réponse
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Texte:
Texte
Documentation de MCP
Ajoutez cet outil à votre configuration de serveur MCP:
{
"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"
}
}
}
Vous pouvez chaîner plusieurs outils, par ex.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 outils.
Si vous rencontrez des problèmes, veuillez nous contacter à [email protected]