Data Processing
Extract all keys from JSON objects with multiple output formats. Perfect for analyzing JSON structure, documentation generation, and understanding complex nested objects.
Appelez cet outil depuis votre code en trois langages.
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}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/json-key-extractor| 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 |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"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"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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
}
}
}| Include the full path to each key in nested objects |
| sortBy | select | Oui | — |
| removeDuplicates | checkbox | Non | Remove duplicate keys when they appear in multiple locations |
| maxDepth | number | Non | — |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]