JSON ↔ YAML, either direction, auto-detected
json_yamlConverts JSON to YAML or YAML to JSON. It works out which one you gave it, so you do not have to say. A parse failure comes back with the parser message instead of silently producing something that looks fine and is not. Use when a config, a CI file, or a Kubernetes manifest needs to be in the other format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional: "json" or "yaml" to force the direction. | |
| text | Yes | The JSON or YAML content. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||