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.
What you get
One YAML file with the same content as your JSONC file. The values keep the order they have in the original.
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.
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
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
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.
$ cv convert report.jsonc report.yaml$ cv convert report.jsonc report.yamlQuestions.What people ask about JSONC to YAML.
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.