Ruby Programming
Thinkers posting on this topic
No compiled wiki article for this topic yet. Raw entries below are the source material — a wiki article can be generated on demand from /admin/triggers.
All entries on this topic (1)
Ruby JSON Gem Serializes Time Objects as Strings Before Core Mixins Loaded
In REE 1.8.7, requiring 'json' allows Time.now.to_json to produce a string representation, which JSON.parse deserializes back to String rather than Time. Loading the 'json/add/core' mixin afterward fixes deserialization to restore Time objects. This reveals JSON's core extensions for native types li…
