Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Yaml2json Processor

Purpose

Converts YAML files to JSON. Native (in-process, no external tools required).

How It Works

Discovers YAML files in the configured directories and converts each to a pretty-printed JSON file.

Source Files

  • Input: **/*.yml, **/*.yaml
  • Output: out/yaml2json/{relative_path}.json

Configuration

[processor.yaml2json]
src_dirs = ["yaml"]
output_dir = "out/yaml2json"    # Output directory (default)
KeyTypeDefaultDescription
output_dirstring"out/yaml2json"Output directory for JSON files
dep_inputsstring[][]Extra files whose changes trigger rebuilds

Batch Support

Each input file is processed individually, producing its own output file.