Data Processing
JSON Key Extractor
Extract all keys from JSON objects with multiple output formats. Perfect for analyzing JSON structure, documentation generation, and understanding complex nested objects.
text· Résultat texteOuvrir l'outil
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
cURL
curl -X POST 'https://api.elysiatools.com/fr/api/tools/json-key-extractor' \
-H 'Content-Type: application/json' \
-d '{"jsonInput":"Enter your JSON data...","outputFormat":"list","flattenKeys":true,"includeTypes":true,"includePath":false,"sortBy":"alphabetical","removeDuplicates":false,"maxDepth":10}'Référence de l'API
Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
Point d'accès
HTTP
POST https://api.elysiatools.com/fr/api/tools/json-key-extractorParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| jsonInput | textarea | Oui | — |
| outputFormat | select | Oui | — |
| flattenKeys | checkbox | Non | Convert nested keys to dot notation (e.g., "user.profile.name") |
| includeTypes | checkbox | Non | Include the data type of each key (string, number, boolean, object, array, null) |
| includePath | checkbox | Non |
Intégration MCP
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Configuration du serveur
Ajoutez ce bloc à la configuration de votre client MCP :
mcp.json
{
"mcpServers": {
"elysiatools-json-key-extractor": {
"name": "json-key-extractor",
"description": "Extract all keys from JSON objects with multiple output formats. Perfect for analyzing JSON structure, documentation generation, and understanding complex nested objects.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=json-key-extractor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Lister les outils disponibles
Après connexion au point d'accès SSE, listez les outils exposés :
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appeler cet outil
Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "json-key-extractor",
"arguments": {
"jsonInput": "Enter your JSON data...",
"outputFormat": "list",
"flattenKeys": true,
"includeTypes": true,
"includePath": false,
"sortBy": "alphabetical",
"removeDuplicates": false,
"maxDepth": 10
}
}
}Chaînez plusieurs outils dans une session avec une liste toolId séparée par des virgules, ex. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (20 max).