# JSON to TOML

Convert a JSON object into TOML with tables and arrays of tables.

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

## Inputs

- `text` (required, string): A JSON object to convert.

## Example

```json
{"input":{"text":"{\"title\":\"x\",\"owner\":{\"name\":\"Sam\",\"admin\":true}}"}}
```

Result:

```json
{"text":"title = \"x\"\n\n[owner]\nname = \"Sam\"\nadmin = true\n"}
```

**Why does a null value fail?** TOML has no null. Remove the key or give it a value before converting.
