Zum Inhalt springen
uencoder

Migrate Konfiguration zwischen JSON und YAML

Konvertieren a JSON config to YAML (or back) with a formatted intermediate step, and know the type-coercion pitfalls before you commit the file.

  1. 1
    JSON-YAML-Konverter →

    For a quick one-way conversion, paste JSON and get YAML directly.

  2. 2

    Recommended when the source JSON is minified: validate and pretty-print it first, inspect the structure, then convert.

  3. 3

    The reverse direction. Watch the JSON output for unquoted YAML scalars coerced to booleans or numbers.

  4. 4

    Before committing the migration, review three known pitfalls: unquoted values that look numeric or boolean get coerced (quote version numbers and semver strings); YAML anchors and aliases (&ref / *ref) have no JSON equivalent and are expanded on conversion; duplicate keys are allowed by some YAML parsers and rejected by JSON — dedupe deliberately.

Häufige Fragen

Is YAML a superset of JSON?
YAML 1.2 is essentially a superset of JSON 1.2 syntax — most JSON parses as YAML. The reverse is not true: YAML features like anchors, multi-document streams, and unquoted scalars have no JSON representation.
Why did my version number become a float?
YAML parses unquoted 1.10 as the number 1.1. Quote version-like strings ('1.10') in YAML to keep them textual.

Workflows, die diese Aufgabe lösen

Zwei YAML-Konfigurationen über JSON vergleichen
YAML-Konfigurationen in JSON umwandeln für diff-freundlichen Vergleich strukturierter Werte.
PIPELINE
Validieren, formatieren, dann JSON zu YAML umwandeln
Eine (möglicherweise minifizierte) JSON-Konfiguration in YAML umwandeln, Syntaxfehler am ersten Knoten abfangen statt subtil falsches YAML zu erzeugen.
PIPELINE
YAML in JSON umwandeln
Ein YAML-Dokument in JSON umwandeln und die geparsten Werte auf Typ-Coercion-Ueberraschungen inspizieren.
PIPELINE
CSV zu JSON dann YAML umwandeln
Tabellenkalkulations-CSV-Daten über JSON-Zwischenschritt in YAML umwandeln, geeignet für Konfigurationserstellung.
PIPELINE
JSON-Nutzlast für URL-Transport kodieren
Ein JSON-Dokument für URL-Parameter vorbereiten: pretty-print, Base64-kodieren, dann percent-kodieren — die exakte Umkehrung der verschachtelten Parameter-Dekodierungskette.
PIPELINE
ENV zu JSON dann YAML
.env zu JSON dann zu YAML umwandeln für Deployment-Konfigurationen.
PIPELINE
HJSON zu JSON-Format
HJSON formatieren und in Standard-JSON umwandeln.
PIPELINE
INI zu JSON dann YAML
INI zu JSON dann zu YAML umwandeln für modernes Konfigurationsformat.
PIPELINE
JSON formatieren und Integritäts-Prüfsumme berechnen
Ein JSON-Dokument pretty-printen und eine CRC32-Prüfsumme berechnen zur Erkennung nachfolgender Änderungen.
PIPELINE
JSON minifizieren und validieren
JSON für Inspektion formatieren und syntaktische Korrektheit in einem Durchgang validieren.
PIPELINE
JSON formatieren und TypeScript-Interface generieren
Ein JSON-Dokument formatieren dann eine TypeScript-Interface-Definition inferieren in einer Kette.
PIPELINE
JSON zu YAML dann TOML umwandeln
Eine JSON-Konfiguration über YAML nach TOML migrieren für Rust- oder Python-Projektkonfigurationen.
PIPELINE
JSON5 zu JSON-Format
JSON5 formatieren und in Standard-JSON umwandeln.
PIPELINE
JSONC zu JSON-Format
JSONC (JSON mit Kommentaren) formatieren und in Standard-JSON umwandeln.
PIPELINE
JWT-Payload dekodieren und formatieren
Ein JWT-Token parsen, Payload extrahieren und JSON formatieren für Inspektion.
PIPELINE
Properties zu JSON dann YAML
Java-Properties zu JSON dann zu YAML umwandeln.
PIPELINE
Query-String parsen und JSON formatieren
Query-String in Schlüssel-Wert-Paare parsen dann als JSON formatieren.
PIPELINE
TOML in JSON umwandeln
Eine TOML-Konfigurationsdatei in JSON parsen fuer Tools und APIs, die JSON-Eingabe erwarten.
PIPELINE
TOML zu JSON dann YAML umwandeln
Eine TOML-Konfiguration ueber JSON in YAML umwandeln fuer Kubernetes oder CI-Tooling.
PIPELINE
TOML ueber JSON in YAML umwandeln
Eine TOML-Konfigurationsdatei in YAML-Format umwandeln, mit JSON als Zwischendarstellung.
PIPELINE
Verschachtelten URL-Parameter dekodieren (Base64 JSON)
Einen URL-Parameter, der URL-kodiertes Base64-JSON transportiert, in lesbares formatiertes JSON entfalten.
PIPELINE
YAML zu JSON dann CSV
YAML zu JSON dann zu CSV umwandeln fuer Tabellenkalkulations-Nutzung.
PIPELINE
TypeScript-Interfaces aus YAML generieren
Ein YAML-Dokument in TypeScript-Interface-Definitionen umwandeln, mit JSON als Zwischenformat.
PIPELINE
YAML validieren und formatieren
YAML zu JSON umwandeln zur Strukturvalidierung, dann bestaetigen, dass das JSON well-formed ist.
PIPELINE

Verwandte Tools