From 2bb0938cd8e351bb5510f0c40d5b344afc55c4d5 Mon Sep 17 00:00:00 2001 From: John Gliksberg Date: Fri, 27 Nov 2015 15:48:31 +0100 Subject: [PATCH 1/2] micro-cosmetic (remove trailing space) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9890719..9074ad7 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ json = require('json') print(json.encode({ 1, 2, 'fred', {first='mars',second='venus',third='earth'} })) ``` ```json -[1,2,"fred", {"first":"mars","second":"venus","third","earth"}] +[1,2,"fred", {"first":"mars","second":"venus","third","earth"}] ``` ## Decoding ## From 6eb4a8a4cc7c070813d1df5daf7d51e5c8b3d2e1 Mon Sep 17 00:00:00 2001 From: John Gliksberg Date: Fri, 27 Nov 2015 15:49:04 +0100 Subject: [PATCH 2/2] [README] fix example table name and add space after comma --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9074ad7..827eff1 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ testString = [[ { "one":1 , "two":2, "primes":[2,3,5,7] } ]] decoded = json.decode(testString) table.foreach(decoded, print) print ("Primes are:") -table.foreach(o.primes,print) +table.foreach(decoded.primes, print) ``` ``` one 1