# TOML to JSON

Convert TOML into JSON. Dates and times become ISO strings.

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

## Inputs

- `text` (required, string): The TOML to convert.
- `indent` (optional, integer, default `2`, range 0..8): Spaces per level. 0 gives one compact line.

## Example

```json
{"input":{"text":"title = \"x\"\n[owner]\nname = \"Sam\"","indent":0}}
```

Result:

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