From f5ddeb6bf3319183859d0b7be3d2da1afc483877 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Mon, 10 Dec 2018 08:05:31 +0900 Subject: Article is duplicated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c7d71d..1b15cf1 100644 --- a/README.md +++ b/README.md @@ -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: -- cgit v1.2.1