diff options
author | yui-knk <spiketeika@gmail.com> | 2018-12-10 08:05:31 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2018-12-10 08:05:31 +0900 |
commit | f5ddeb6bf3319183859d0b7be3d2da1afc483877 (patch) | |
tree | a103f235dc0640999afebc4c27e0fe0092f71f1e | |
parent | 22579b3ed682e95c6228a0fdbac1adc3b1df4800 (diff) | |
download | json-f5ddeb6bf3319183859d0b7be3d2da1afc483877.tar.gz |
Article is duplicated
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -207,7 +207,7 @@ JSON representation later. In this case it's `Range`, but any namespace of the form `A::B` or `::A::B` will do. All other keys are arbitrary and can be used to store the necessary data to configure the object to be deserialised. -If a the key `json_class` is found in a JSON object, the JSON parser checks +If the key `json_class` is found in a JSON object, the JSON parser checks if the given class responds to the `json_create` class method. If so, it is called with the JSON object converted to a Ruby hash. So a range can be deserialised by implementing `Range.json_create` like this: |