[json/zh-cn] sync with en (#4044)

* [json/zh-cn] sync with en

* Update json-cn.html.markdown
This commit is contained in:
谭九鼎 2023-12-15 19:12:09 +08:00 committed by GitHub
parent 5cb2444db0
commit c478046e7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,24 +8,30 @@ filename: learnjson-cn.json
lang: zh-cn
---
JSON
Learn X in Y Minutes
JSON[json.org](https://json.org)
JSON
C-(//, /\* \*/)
JSON
* (`{ }`)//////
* (`[ ]`)///
JSONC-(//, /\* \*/)trailing comma
100%JSON
- : "hello", "\"A quote.\"", "\u0abe", "Newline.\n"
- : 23, 0.11, 12e10, 3.141e-10, 1.23e+4
- : { "key": "value" }
- : ["Values"]
- : true, false, null
* `"hello"``"\"A quote.\""``"\u0abe"``"Newline.\n"`
* `23``0.11``12e10``3.141e-10``1.23e+4`
* `{ "key": "value" }`
* `["Values"]`
* `true``false``null`
```json
{
"key": "value",
"keys": "must always be enclosed in double quotes",
"numbers": 0,
"strings": "Hellø, wørld. All unicode is allowed, along with \"escaping\".",
"has bools?": true,
@ -55,6 +61,23 @@ Learn X in Y Minutes。
]
],
"that was short": "And, you're done. You now know everything JSON has to offer."
"alternative style": {
"comment": "check this out!"
, "comma position": "doesn't matter, if it's before the next key, it's valid"
, "another comment": "how nice"
},
"whitespace": "Does not matter.",
"that was short": "And done. You now know everything JSON has to offer."
}
```
##
* [JSON.org](https://www.json.org/json-zh.html) JSON
* [JSON Tutorial](https://www.youtube.com/watch?v=wI1CWzNtE-M)