# JSON unflatten

Rebuild nested JSON from flat dotted keys. Numeric key parts become array positions.

- Endpoint: `POST https://setget.net/v1/tools/json-unflatten` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `json-unflatten`
- Page: https://setget.net/tools/json-unflatten

## Inputs

- `text` (required, string): A flat JSON object with dotted keys.
- `separator` (optional, string, default `"."`): Text that separates key parts.
- `indent` (optional, integer, default `2`, range 0..8): Spaces per level. 0 gives one compact line.

## Example

```json
{"input":{"text":"{\"user.name\":\"Sam\",\"user.tags.0\":\"a\",\"user.tags.1\":\"b\"}","indent":0}}
```

Result:

```json
{"text":"{\"user\":{\"name\":\"Sam\",\"tags\":[\"a\",\"b\"]}}"}
```
