Edit online

YAML to JSON Converter

Converting YAML to JSON in Oxygen

Oxygen XML Editor includes a useful and simple tool for converting YAML files to JSON. It even works on files that consist of multiple YAML documents, each separated by three dashes (---), in which case the conversion creates multiple JSON files with a number in the name.

The YAML to JSON action for invoking the tool can be found in the Tools > JSON Tools menu.

To convert a YAML document to JSON, follow these steps:

  1. Select the YAML to JSON action from the Tools > JSON Tools menu.

    The YAML to JSON dialog box is displayed:

    Figure 1. YAML to JSON Dialog Box
  2. Choose or enter the YAML URL for the document you want to convert.
  3. Choose the path of the Output file that will contain the resulting JSON document.
  4. [Optional] Select the Open in Editor option to open the resulting JSON document in the main editing pane.
  5. Click the Convert button.

Result: The original YAML document is now converted to a JSON document.