Data Processing
Extract all keys from JSON objects with multiple output formats. Perfect for analyzing JSON structure, documentation generation, and understanding complex nested objects.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/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}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/json-key-extractor| Name | Type | Required | Description |
|---|---|---|---|
| jsonInput | textarea | Yes | — |
| outputFormat | select | Yes | — |
| flattenKeys | checkbox | No | Convert nested keys to dot notation (e.g., "user.profile.name") |
| includeTypes | checkbox | No | Include the data type of each key (string, number, boolean, object, array, null) |
| includePath | checkbox | No |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"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"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"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
}
}
}Questions or issues? Contact [email protected]
| Include the full path to each key in nested objects |
| sortBy | select | Yes | — |
| removeDuplicates | checkbox | No | Remove duplicate keys when they appear in multiple locations |
| maxDepth | number | No | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}