mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Add extra detail
This commit is contained in:
parent
20f5a00de4
commit
8348e27660
@ -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 (' or \")"
|
||||
"numbers": 0,
|
||||
"strings": "Hellø, wørld. All unicode is allowed, along with \"escaping\".",
|
||||
"has bools?": true,
|
||||
@ -43,6 +47,11 @@ going to be 100% valid JSON. Luckily, it kind of speaks for itself.
|
||||
]
|
||||
],
|
||||
|
||||
"alternative style": {
|
||||
"comment": "check this out!"
|
||||
, "comma position": "doesn't matter - as long as its before the value, then its valid"
|
||||
, "see for rationale": "https://gist.github.com/isaacs/357981"
|
||||
|
||||
"that was short": "And, you're done. You know know everything JSON has to offer."
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user