Skip to content

Commit

Permalink
Merge pull request #331 from perlun/patch-2
Browse files Browse the repository at this point in the history
Fixed json_create example to use create_additions = true
  • Loading branch information
flori committed May 31, 2017
2 parents 4688035 + 4c3fa82 commit 950440a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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]
```

Expand Down

0 comments on commit 950440a

Please sign in to comment.