diff options
author | Shawn Zhang <shawnzhang009@gmail.com> | 2016-03-15 11:42:20 +0800 |
---|---|---|
committer | Shawn Zhang <shawnzhang009@gmail.com> | 2016-03-15 11:42:20 +0800 |
commit | b38a7645366b1580b5f554303e411447c7d2d09d (patch) | |
tree | cfe5c9e59fa1f3611a5b5545f9b2d74cbac461f2 /ro-ro/json-ro.html.markdown | |
parent | 072424afd77b9d772102f83508fcc337ffc81a7d (diff) | |
parent | fbe11b52d5fe839f791935012b93ff8ef2ac91f6 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ro-ro/json-ro.html.markdown')
-rw-r--r-- | ro-ro/json-ro.html.markdown | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/ro-ro/json-ro.html.markdown b/ro-ro/json-ro.html.markdown new file mode 100644 index 00000000..e897059c --- /dev/null +++ b/ro-ro/json-ro.html.markdown @@ -0,0 +1,61 @@ +--- +language: json +filename: learnjson-ro.json +contributors: + - ["Anna Harren", "https://github.com/iirelu"] + - ["Marco Scannadinari", "https://github.com/marcoms"] +translators: + - ["Serban Constantin", "https://github.com/fuzzmz"] +lang: ro-ro +--- + +Deoarece JSON este un fromat foarte simplu de schimb de date acesta va fi +probabil cel mai simplu Invata X in Y minute. + +JSON in forma cea mai pura nu contine comentarii insa majoritatea parserelor +vor accepta comentarii in stil C (`//`, `/* */`). Pentru acest caz insa totul +va fi JSON 100% valid. Din fericire codul vorbeste de la sine. + +```json +{ + "cheie": "valoare", + + "chei": "trebuie mereu inconjurate de ghilimele", + "numere": 0, + "stringuri": "BunĂ£. Tot setul unicode este permis, chiar si \"escaping\".", + "are booleane?": true, + "nimic": null, + + "numere mari": 1.2e+100, + + "obiecte": { + "comentariu": "Majoritatea structurii va veni din obiecte.", + + "vectori": [0, 1, 2, 3, "Vectorii pot avea orice in ei.", 5], + + "alt obiect": { + "comentariu": "Lucrurile pot fi subordonate. Foarte util." + } + }, + + "glumite": [ + { + "surse de potasiu": ["banane"] + }, + [ + [1, 0, 0, 0], + [0, 1, 0, 0], + [0, 0, 1, "neo"], + [0, 0, 0, 1] + ] + ], + + "stil alternativ": { + "comentariu": "ia uite la asta!" + , "pozitia virgulei": "nu conteaza - daca e inaintea valorii atunci e valida" + , "alt comentariu": "ce dragut" + }, + + "a fost scurt": "Am terminat. Acum stii tot ce are JSON de oferit." +} +``` |