# YAML to JSON Converter Workflow

**Use case:** 

Convert YAML configuration files to formatted JSON while validating syntax and preserving clean output for automation pipelines.

## Input

```json
{
  "documents": [
    "service:\n  name: payments\n  ports:\n    - 8080\n    - 9090\n  enabled: true"
  ],
  "urls": [],
  "operation": "convert",
  "inputFormat": "yaml",
  "outputFormat": "json",
  "jsonIndent": 2,
  "stopOnError": true,
  "includeOriginal": false
}
```

## Output

```json
{
  "index": {
    "label": "#",
    "format": "number"
  },
  "source": {
    "label": "Source",
    "format": "text"
  },
  "inputFormat": {
    "label": "Format",
    "format": "text"
  },
  "isValid": {
    "label": "Valid",
    "format": "boolean"
  },
  "errorMessage": {
    "label": "Error",
    "format": "text"
  },
  "errorLine": {
    "label": "Line",
    "format": "number"
  },
  "outputFormat": {
    "label": "Output Format",
    "format": "text"
  },
  "convertedContent": {
    "label": "Converted Content",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [YAML Validator & Converter](https://apify.com/automation-lab/yaml-validator) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/yaml-validator) to learn more, explore other use cases, and run it yourself.