Deserializes JSON string by converting numerator value n, denominator value d, to a Rational object.
Returns a hash, that will be turned into a JSON object and represent this object.
Stores class name (Rational) along with numerator value n and denominator value d as JSON string
[Validate]