diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-12-10 10:03:51 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 10:03:51 +0900 |
commit | 2f693d31bebe9d414e0857556a005272b41bcba0 (patch) | |
tree | a103f235dc0640999afebc4c27e0fe0092f71f1e | |
parent | f1d635dc9083c4536cf880a2a8b78e99f5fdc80f (diff) | |
parent | f5ddeb6bf3319183859d0b7be3d2da1afc483877 (diff) | |
download | json-2f693d31bebe9d414e0857556a005272b41bcba0.tar.gz |
Merge pull request #363 from yui-knk/fix_typos
Fix typos in README.md
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -156,7 +156,7 @@ not been required yet. The JSON module doesn't extend `Exception` by default. If you convert an `Exception` object to JSON, it will by default only include the exception message. -To include the full details, you must either load the load the `json/add/core` mentioned +To include the full details, you must either load the `json/add/core` mentioned above, or specifically load the exception addition: ```ruby @@ -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: |