jsonc Playground

A Json like file format with comments

Drop your jsonc here:
Format
Get your formatted json here:

				

Proposal

Jsonc is a simplified json format which allows comments and unquoted values delimited by whitespace. A jsonc formatted file can be transformed to a json file. Comments will be stripped out and quotes added.

Any valid json is also a valid jsonc - but this goes only in one direction.

Why

Json formatted files could be very handy to be used as config files. But the lack of comments and the redundancy of the format hurts readability. Standard formatting like gofmt would also be very handy.

Disclamer

This is just a proposal. Any help like bugfixing, improvements or suggestions are welcome.