RevealTheme logo

YAML-zu-JSON-Konverter

Konvertieren Sie YAML in Ihrem Browser in JSON. Unterstützt verschachtelte Maps, Listen, Zeichenketten, Zahlen und boolesche Werte.

So verwenden Sie dieses Tool

  1. 1

    Paste or type your YAML into the input box, using spaces (not tabs) for indentation.

  2. 2

    Read the pretty-printed JSON that appears below the box as you type.

  3. 3

    If a red error message shows instead, check your indentation and remove unsupported syntax.

  4. 4

    Select and copy the JSON output to paste into your config, code, or API client.

Was ist der YAML-zu-JSON-Konverter?

YAML und JSON sind Datenaustauschformate, die dieselben Strukturen darstellen können. YAML ist für Menschen besser lesbar (ohne geschweifte Klammern oder Anführungszeichen), aber JSON ist universeller parsbar. Die Konvertierung zwischen beiden ist bei Konfigurationsdateien üblich (GitHub Actions, Docker Compose), wenn Sie Daten in Tools einspeisen müssen, die nur JSON akzeptieren.

Häufige Anwendungsfälle

  • Quickly turning a small docker-compose.yml or GitHub Actions snippet into JSON to inspect its structure.

  • Converting a hand-written config block into JSON to paste into a tool or API that only accepts JSON.

  • Checking how YAML scalars like true, 123, or ~ get typed once they become JSON values.

  • Sanity-checking indentation in a YAML fragment by seeing whether the nesting comes out as you expect.

  • Generating seed JSON fixtures for tests from a more readable YAML draft.

  • Teaching or learning the mapping between YAML structures and their JSON equivalents.

Häufig gestellte Fragen

Werden die erweiterten Funktionen von YAML unterstützt?
Anker, Aliase, mehrzeilige Zeichenketten und Tags werden nicht unterstützt. Verwenden Sie für diese Fälle einen vollständigen YAML-Parser wie js-yaml.

Verwandte Tools