diff options
author | Florian Frank <flori@ping.de> | 2017-05-31 18:46:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-31 18:46:17 +0200 |
commit | 950440a187ad0b0b25706ed199018ede5203a396 (patch) | |
tree | 41cf7af60bf1d1962b33f81778ce2e1d135c04b9 | |
parent | 4688035c424a26a8d943c261170988f1b788fa56 (diff) | |
parent | 4c3fa82f905c2b01cc9186c0b701c0f1b1956a11 (diff) | |
download | json-950440a187ad0b0b25706ed199018ede5203a396.tar.gz |
Merge pull request #331 from perlun/patch-2
Fixed json_create example to use create_additions = true
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] ``` |