mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 07:12:31 +03:00
commit
9862212ed1
@ -3,6 +3,7 @@ language: json
|
||||
filename: learnjson.json
|
||||
contributors:
|
||||
- ["Anna Harren", "https://github.com/iirelu"]
|
||||
- ["Marco Scannadinari", "https://github.com/marcoms"]
|
||||
---
|
||||
|
||||
As JSON is an extremely simple data-interchange format, this is most likely going
|
||||
@ -14,6 +15,9 @@ going to be 100% valid JSON. Luckily, it kind of speaks for itself.
|
||||
|
||||
```json
|
||||
{
|
||||
"key": "value",
|
||||
|
||||
"keys": "must always be enclosed in quotes (either double or single)",
|
||||
"numbers": 0,
|
||||
"strings": "Hellø, wørld. All unicode is allowed, along with \"escaping\".",
|
||||
"has bools?": true,
|
||||
@ -42,6 +46,12 @@ going to be 100% valid JSON. Luckily, it kind of speaks for itself.
|
||||
[0, 0, 0, 1]
|
||||
]
|
||||
],
|
||||
|
||||
"alternative style": {
|
||||
"comment": "check this out!"
|
||||
, "comma position": "doesn't matter - as long as its before the value, then its valid"
|
||||
, "another comment": "how nice"
|
||||
},
|
||||
|
||||
"that was short": "And, you're done. You now know everything JSON has to offer."
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user