Data Processing
Convert flattened key-value pairs back to nested JSON objects with support for different key formats and data type inference
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/json-unflattener' \
-H 'Content-Type: application/json' \
-d '{"dataInput":"{\n \"user.name\": \"John\",\n \"user.age\": \"30\",\n \"user.city\": \"New York\",\n \"settings.theme\": \"dark\",\n \"settings.notifications\": \"true\"\n}","inputFormat":"json","keyFormat":"nested","delimiter":".","typeInference":"auto","arrayMode":"numeric","mergeStrategy":"override","preserveEmpty":true}'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-unflattener| Name | Type | Required | Description |
|---|---|---|---|
| dataInput | textarea | Yes | — |
| inputFormat | select | Yes | — |
| keyFormat | select | Yes | — |
| delimiter | text | No | — |
| typeInference | select | Yes | — |
| arrayMode |
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-unflattener": {
"name": "json-unflattener",
"description": "Convert flattened key-value pairs back to nested JSON objects with support for different key formats and data type inference",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=json-unflattener",
"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-unflattener",
"arguments": {
"dataInput": "{\n \"user.name\": \"John\",\n \"user.age\": \"30\",\n \"user.city\": \"New York\",\n \"settings.theme\": \"dark\",\n \"settings.notifications\": \"true\"\n}",
"inputFormat": "json",
"keyFormat": "nested",
"delimiter": ".",
"typeInference": "auto",
"arrayMode": "numeric",
"mergeStrategy": "override",
"preserveEmpty": true
}
}
}| select |
| Yes |
| — |
| mergeStrategy | select | Yes | — |
| preserveEmpty | checkbox | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]