# JSON to YAML

Convert JSON into clean block-style YAML, keeping key order.

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

## Inputs

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

## Example

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

Result:

```json
{"text":"name: app\nports:\n- 80\n- 443\n"}
```
