diff --git a/README.md b/README.md index 9890719..827eff1 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 ## @@ -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