JSON with Comments (JSONC)

JSONC extends JSON-style documents with line and block comments. Applications may differ in their rules for trailing commas.

Using JSON with Comments (JSONC) in Docbench

Validate the sample or convert it to JSON to remove comments.

Open example in the editor

Example

{
  // Quantity per box
  "quantity": 3
}

JSON with Comments (JSONC) reference