# YAML to JSON

Convert YAML into JSON. Dates become ISO strings; anchors and aliases are resolved.

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

## Inputs

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

## Example

```json
{"input":{"text":"name: app\nports:\n  - 80\n  - 443","indent":0}}
```

Result:

```json
{"text":"{\"name\":\"app\",\"ports\":[80,443]}"}
```
