# Convert pyproject.toml to JSON

**Use case:** 

Convert Python pyproject.toml content to formatted JSON for automation, audits, and migration workflows.

## Input

```json
{
  "documents": [
    "[project]\nname = \"analytics-tools\"\nversion = \"2.4.0\"\ndescription = \"Internal analytics utilities\"\nrequires-python = \">=3.11\"\n\n[tool.ruff]\nline-length = 100"
  ],
  "urls": [],
  "operation": "convert",
  "inputFormat": "toml",
  "outputFormat": "json",
  "jsonIndent": 2,
  "stopOnError": false,
  "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 [TOML Validator & Converter](https://apify.com/automation-lab/toml-validator) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/toml-validator) to learn more, explore other use cases, and run it yourself.