class Float

def as_json(options = nil) # :nodoc:

:nodoc:
"Infinity" or "NaN" which are not valid JSON.
Encoding Infinity or NaN to JSON should return "null". The default returns
def as_json(options = nil) # :nodoc:
  finite? ? self : nil
end