# JSON to CSV

Turn a JSON array of objects into CSV. Nested objects become dotted column names.

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

## Inputs

- `text` (required, string): A JSON array of objects (or one object).
- `delimiter` (optional, string, one of `comma`, `tab`, `semicolon`, `pipe`, default `"comma"`): Column separator for the output.

## Example

```json
{"input":{"text":"[{\"name\":\"Sam\",\"address\":{\"city\":\"Oslo\"}},{\"name\":\"Alex\"}]"}}
```

Result:

```json
{"text":"name,address.city\nSam,Oslo\nAlex,\n","rows":2,"columns":["name","address.city"]}
```
