summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2017-05-31 18:46:17 +0200
committerGitHub <noreply@github.com>2017-05-31 18:46:17 +0200
commit950440a187ad0b0b25706ed199018ede5203a396 (patch)
tree41cf7af60bf1d1962b33f81778ce2e1d135c04b9
parent4688035c424a26a8d943c261170988f1b788fa56 (diff)
parent4c3fa82f905c2b01cc9186c0b701c0f1b1956a11 (diff)
downloadjson-950440a187ad0b0b25706ed199018ede5203a396.tar.gz
Merge pull request #331 from perlun/patch-2
Fixed json_create example to use create_additions = true
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index f9cd95d..7d5b156 100644
--- a/README.md
+++ b/README.md
@@ -212,7 +212,7 @@ Now it possible to serialise/deserialise ranges as well:
```ruby
json = JSON.generate [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
# => "[1,2,{\"a\":3.141},false,true,null,{\"json_class\":\"Range\",\"data\":[4,10,false]}]"
- JSON.parse json
+ JSON.parse json, :create_additions => true
# => [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
```