Altova XMLSpy 2025 Enterprise Edition

Convert between YAML and JSON/XML

Home Prev Top Next

You can convert a YAML document to a JSON document and vice versa. This applies to instance documents as well as schemas. Make the JSON or YAML document you want to convert to the other format active and select the menu command Convert | Convert JSON to/from YAML. The new file will be opened in a new window, where you can edit it and from where you can save it to file.

 

When converting from YAML to JSON, you can yourself select the JSON output format (JSON, JSONC, JSON5, or JSONL), or you can let XMLSpy decide the JSON format depending on the content of the YAML document.

 

You can also convert a YAML instance to an XML instance and vice versa. Make the YAML/XML file you want to convert the active file and select the menu command Convert | Convert XML Instance to/from JSON/YAML. The active document will be converted into a document of the other format. The new file will be opened in a new window, where you can edit it and from where you can save it to file.

 

Note:These commands are also available in the context menu of XMLSpy project folders and files. When used on a project folder, the command allows you to batch convert all the JSON, XML, and YAML files in the folder to the other format.

 

© 2018-2024 Altova GmbH