源代碼下載:?learnjson-cn.json
因?yàn)镴SON是一個(gè)極其簡(jiǎn)單的數(shù)據(jù)交換形式,這個(gè)最有可能將會(huì)是曾經(jīng)最簡(jiǎn)單 的Learn X in Y Minutes。
最純正形式的JSON沒有實(shí)際的注解,但是大多數(shù)解析器將會(huì) 接受C-風(fēng)格(//, / /)的注解。為了這個(gè)目的,但是, 一切都將會(huì)是100%有效的JSON。幸虧,它是不言自明的。
{
"numbers": 0,
"strings": "Hell?, w?rld. All unicode is allowed, along with \"escaping\".",
"has bools?": true,
"nothingness": null,
"big number": 1.2e+100,
"objects": {
"comment": "Most of your structure will come from objects.",
"array": [0, 1, 2, 3, "Arrays can have anything in them.", 5],
"another object": {
"comment": "These things can be nested, very useful."
}
},
"silliness": [
{
"sources of potassium": ["bananas"]
},
[
[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, "neo"],
[0, 0, 0, 1]
]
],
"that was short": "And, you're done. You now know everything JSON has to offer."
}
更多建議: