Skip to content

Commit cc788d5

Browse files
authored
,
1 parent 285083f commit cc788d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

1-js/05-data-types/12-json/article.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,11 @@ Here are typical mistakes in hand-written JSON (sometimes we have to write it fo
441441

442442
```js
443443
let json = `{
444-
*!*name*/!*: "John", // mistake: property name without quotes
445-
"surname": *!*'Smith'*/!*, // mistake: single quotes in value (must be double)
446-
*!*'isAdmin'*/!*: false // mistake: single quotes in key (must be double)
447-
"birthday": *!*new Date(2000, 2, 3)*/!*, // mistake: no "new" is allowed, only bare values
448-
"friends": [0,1,2,3] // here all fine
444+
*!*name*/!*: "John", // mistake: property name without quotes
445+
"surname": *!*'Smith'*/!*, // mistake: single quotes in value (must be double)
446+
*!*'isAdmin'*/!*: false, // mistake: single quotes in key (must be double)
447+
"birthday": *!*new Date(2000, 2, 3)*/!*, // mistake: no "new" is allowed, only bare values
448+
"friends": [0,1,2,3] // here all fine
449449
}`;
450450
```
451451

0 commit comments

Comments
 (0)