README.md in oj-2.10.2 vs README.md in oj-2.10.3

- old
+ new

@@ -24,14 +24,19 @@ ## Build Status [![Build Status](https://secure.travis-ci.org/ohler55/oj.png?branch=master)](http://travis-ci.org/ohler55/oj) -### Current Release 2.10.2 +### Current Release 2.10.3 - - Fixed string corruption bug due to an uncommented assignment used for debugging. + - Using the xmlschema option with :object mode now saves time as a string and + preserves the timezone. + - Rational recursive loop caused by active support fixed. + + - Time in mimic_JSON mode are now the ruby string representation of a date. + [Older release notes](http://www.ohler.com/dev/oj_misc/release_notes.html). ## Description Optimized JSON (Oj), as the name implies, was written to provide speed optimized @@ -52,10 +57,10 @@ - `:object` mode will dump any `Object` as a JSON `Object` with keys that match the Ruby `Object`'s variable names without the '@' prefix character. This is the highest performance mode. - `:compat` mode attempts to be compatible with other systems. It will serialize any - `Object`, but will check to see if the `Object` implements an `as_hash` or `to_json` + `Object`, but will check to see if the `Object` implements an `to_hash` or `to_json` method. If either exists, that method is used for serializing the `Object`. Since `as_json` is more flexible and produces more consistent output, it is preferred over the `to_json` method. If neither the `to_json` or `to_hash` methods exists, then the Oj internal `Object` variable encoding is used.