Data Processing
Extract all keys from JSON objects with multiple output formats. Perfect for analyzing JSON structure, documentation generation, and understanding complex nested objects.
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/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}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/json-key-extractor| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| jsonInput | textarea | Sim | — |
| outputFormat | select | Sim | — |
| flattenKeys | checkbox | Não | Convert nested keys to dot notation (e.g., "user.profile.name") |
| includeTypes | checkbox | Não | Include the data type of each key (string, number, boolean, object, array, null) |
| includePath | checkbox | Não |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente 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"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"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 | Sim | — |
| removeDuplicates | checkbox | Não | Remove duplicate keys when they appear in multiple locations |
| maxDepth | number | Não | — |
Resultado de texto
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Dúvidas ou problemas? Contate [email protected]