Skip to content

Instantly share code, notes, and snippets.

@kamathln
Created April 9, 2019 17:07
Show Gist options
  • Save kamathln/26e43eb9552e03939b942bc57721950f to your computer and use it in GitHub Desktop.
Save kamathln/26e43eb9552e03939b942bc57721950f to your computer and use it in GitHub Desktop.
Jsonc not parsing, no error
{
/*
jsonc example
hit Format and check the json output
*/
// forgiving syntax
hey: [this needs no commas]
// unquoted values
give: "[it a shot]
/* and lots of comments :) */
now?: what"
// try it for yourself
"this": {
"is": "also",
"just": "a"
},
"json": "formatter"
}
@komkom
Copy link

komkom commented Apr 10, 2019

interesting thanks for the case will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment