Document `Rational` json generation methods.

Document `Rational` json generation methods.