Convert rationals to floats to comply with JSON spec

Right now JSON parsers in languages without a rational type are almost certain to complain.