From e5bec988bb56307975913232841d5e604534f4e1 Mon Sep 17 00:00:00 2001 From: iirelu Date: Sat, 1 Mar 2014 19:43:03 +0000 Subject: added json.html.markdown Very short and slightly silly, but I think it works. --- json.html.markdown | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 json.html.markdown (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown new file mode 100644 index 00000000..7df47a4a --- /dev/null +++ b/json.html.markdown @@ -0,0 +1,49 @@ +--- +language: json +filename: learnjson.json +contributors: + - ["Anna Harren", "https://github.com/iirelu"] +--- + + 0 +As JSON is an extremely simple data-interchange format, this is most likely going +to be the simplest Learn X in Y Minutes ever. + +JSON in its purest form has no actual comments, but most parsers will accept +C-style (//, /\* \*/) comments. For the purposes of this, everything is going to +be 100% valid JSON. Luckily, it kind of speaks for itself. + +```json +{ + "numbers": 0, + "strings": "Hellø, wørld. All unicode is allowed.", + "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, "banana", 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 know know everything JSON has to offer." +} +``` -- cgit v1.2.3 From 9894e0ce15a618910f9335e2e46b18ff805d9438 Mon Sep 17 00:00:00 2001 From: iirelu Date: Sat, 1 Mar 2014 19:46:36 +0000 Subject: slightly expanded on json.html.markdown Removed useless stuff, added new stuff. --- json.html.markdown | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown index 7df47a4a..f86f0ae9 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -5,18 +5,17 @@ contributors: - ["Anna Harren", "https://github.com/iirelu"] --- - 0 As JSON is an extremely simple data-interchange format, this is most likely going to be the simplest Learn X in Y Minutes ever. JSON in its purest form has no actual comments, but most parsers will accept -C-style (//, /\* \*/) comments. For the purposes of this, everything is going to -be 100% valid JSON. Luckily, it kind of speaks for itself. +C-style (//, /\* \*/) comments. For the purposes of this, however, everything is +going to be 100% valid JSON. Luckily, it kind of speaks for itself. ```json { "numbers": 0, - "strings": "Hellø, wørld. All unicode is allowed.", + "strings": "Hellø, wørld. All unicode is allowed, along with \"escaping\".", "has bools?": true, "nothingness": null, @@ -25,7 +24,7 @@ be 100% valid JSON. Luckily, it kind of speaks for itself. "objects": { "comment": "Most of your structure will come from objects.", - "array": [0, 1, 2, 3, "banana", 5], + "array": [0, 1, 2, 3, "Arrays can have anything in them.", 5], "another object": { "comment": "These things can be nested, very useful." -- cgit v1.2.3 From 8348e27660026f70f57ca95dbd4b175adada0410 Mon Sep 17 00:00:00 2001 From: Marco Scannadinari Date: Sun, 8 Jun 2014 22:00:14 +0100 Subject: Add extra detail --- json.html.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown index f86f0ae9..28906116 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -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, @@ -42,6 +46,11 @@ 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" + , "see for rationale": "https://gist.github.com/isaacs/357981" "that was short": "And, you're done. You know know everything JSON has to offer." } -- cgit v1.2.3 From a5f41dd164ec69da6a748a50fa6c9af1b0ba6db6 Mon Sep 17 00:00:00 2001 From: Marco Scannadinari Date: Wed, 11 Jun 2014 09:55:56 +0100 Subject: Fix missing commas and closing braces --- json.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown index 28906116..6891e04e 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -17,7 +17,7 @@ going to be 100% valid JSON. Luckily, it kind of speaks for itself. { "key": "value", - "keys": "must always be enclosed in quotes (' or \")" + "keys": "must always be enclosed in quotes (' or \")", "numbers": 0, "strings": "Hellø, wørld. All unicode is allowed, along with \"escaping\".", "has bools?": true, @@ -51,6 +51,7 @@ going to be 100% valid JSON. Luckily, it kind of speaks for itself. "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." } -- cgit v1.2.3 From a88daf14358c9d699adc9a2e2808cce65e6b202e Mon Sep 17 00:00:00 2001 From: Jack Hooper Date: Thu, 12 Jun 2014 13:49:22 +1000 Subject: [json/en] - fixed typo Changed "You know know everything..." to "You now know everything..." --- json.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown index f86f0ae9..0e1a7d24 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -43,6 +43,6 @@ going to be 100% valid JSON. Luckily, it kind of speaks for itself. ] ], - "that was short": "And, you're done. You know know everything JSON has to offer." + "that was short": "And, you're done. You now know everything JSON has to offer." } ``` -- cgit v1.2.3 From de369eaa29e6cd1b979014a2a23742297d8e9edf Mon Sep 17 00:00:00 2001 From: Marco Scannadinari Date: Fri, 13 Jun 2014 19:20:21 +0100 Subject: Remove escaped quotes and external gist link --- json.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown index 6891e04e..6d06ffe4 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -17,7 +17,7 @@ going to be 100% valid JSON. Luckily, it kind of speaks for itself. { "key": "value", - "keys": "must always be enclosed in quotes (' or \")", + "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, @@ -50,7 +50,7 @@ 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" + , "another comment": "how nice" }, "that was short": "And, you're done. You know know everything JSON has to offer." -- cgit v1.2.3 From 074d488aa2ce33683ee5066aeffa5b010ffe38a4 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Sun, 21 Sep 2014 18:27:43 +0200 Subject: [json/en] JSON should not use single quote delimited strings --- json.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown index 9041eaa2..f5287138 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -17,7 +17,7 @@ going to be 100% valid JSON. Luckily, it kind of speaks for itself. { "key": "value", - "keys": "must always be enclosed in quotes (either double or single)", + "keys": "must always be enclosed in double quotes", "numbers": 0, "strings": "Hellø, wørld. All unicode is allowed, along with \"escaping\".", "has bools?": true, -- cgit v1.2.3 From 699c6d22390e359d586ad584eb44ab757858b4c4 Mon Sep 17 00:00:00 2001 From: Alois Date: Sun, 3 May 2015 20:55:14 +0200 Subject: Fix Markdown --- json.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown index f5287138..f57b82b8 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -10,7 +10,7 @@ As JSON is an extremely simple data-interchange format, this is most likely goin to be the simplest Learn X in Y Minutes ever. JSON in its purest form has no actual comments, but most parsers will accept -C-style (//, /\* \*/) comments. For the purposes of this, however, everything is +C-style (`//`, `/* */`) comments. For the purposes of this, however, everything is going to be 100% valid JSON. Luckily, it kind of speaks for itself. ```json -- cgit v1.2.3 From 4206b4ccd04c8343e6becd58a2c9549e9593cbd6 Mon Sep 17 00:00:00 2001 From: David Stockton Date: Sat, 3 Oct 2015 19:35:42 -0600 Subject: Correct usage of "it's" in javascript doc --- json.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown index f57b82b8..47a8cb21 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -49,7 +49,7 @@ 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" + , "comma position": "doesn't matter - as long as it's before the value, then it's valid" , "another comment": "how nice" }, -- cgit v1.2.3 From 960ee4a1856db8eadb96277bb2422edfa8f2a81c Mon Sep 17 00:00:00 2001 From: Gabriel Halley Date: Wed, 7 Oct 2015 23:11:24 -0400 Subject: removing whitespace all over --- json.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'json.html.markdown') diff --git a/json.html.markdown b/json.html.markdown index 47a8cb21..6aff2ce2 100644 --- a/json.html.markdown +++ b/json.html.markdown @@ -16,7 +16,7 @@ going to be 100% valid JSON. Luckily, it kind of speaks for itself. ```json { "key": "value", - + "keys": "must always be enclosed in double quotes", "numbers": 0, "strings": "Hellø, wørld. All unicode is allowed, along with \"escaping\".", @@ -46,7 +46,7 @@ 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 it's before the value, then it's valid" -- cgit v1.2.3