Convert JSONC to YAML

Turn JSONC files into YAML. Comments and trailing commas are removed and everything else is kept in its order, including comment-like text inside strings.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop JSONC files on the dialor turn it to pick what to do

JSONC becomes plain YAML.Comments and trailing commas go. Everything else stays in order.

  1. What you get

    One YAML file with the same content as your JSONC file. The values keep the order they have in the original.

  2. What it removes

    Comments are removed. Trailing commas are removed too.

    Text inside a string that looks like a comment is not treated as one. It stays in the string as written.

  3. When it fails

    If the file cannot be parsed, the conversion stops with input_corrupted.

    To go the other way, use YAML to JSONC.

JSONC and YAML.What each format is.

The formats

From · JSONC

JSON with Comments

JSON that allows comments, as in editor and TypeScript configuration files.

Extensions
.jsonc
MIME type
text/x-jsonc
Kind
Text and data
To · YAML

YAML

YAML configuration and data files.

Extensions
.yaml .yml
MIME type
application/yaml
Kind
Text and data

In your code.The same JSONC to YAML conversion through the API, for your app or your agent.

terminal
$ cv convert report.jsonc report.yaml
$ cv convert report.jsonc report.yaml

Questions.What people ask about JSONC to YAML.

01OF 04

No. Comments are removed from the output.

No. Comment-like text inside a string is kept as it is.

No. Everything that is kept stays in its original order.

The file could not be parsed. The conversion stops with input_corrupted in that case.

More conversions.Other ways in and out of JSONC and YAML.