Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ Comments provide context alongside the data, but they MUST NOT affect consumptio

### Single-line Comments

Single-line comments start with `//` and continue until a line ending is encountered.
Single-line comments start with // and continue until a line ending, a line seperator (U+2028) or a paragraph seperator (U+2029) is encountered. U+2028 and U+2029 can only appear at the end of a line comment or inside a string literal.

```jsonc
{
// This is a single-line comment
"name": "John Doe",
"age": 30 // This is another single line comment
}
// This is another single-line comment at the end without new line
```

### Multi-line Comments
Expand Down