two-way converter with comments preserved
— paste YAML or JSON The YAML ↔ JSON converter automatically detects whether the input is YAML or JSON and converts it to the other format. The YAML parser is implemented from scratch and handles block and flow mappings, block and flow sequences, all scalar types (string, integer, float, boolean, null), multi-line block scalars (| and >), quoted strings, and comments. Converting from JSON produces clean, indented YAML.