method

as_json

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Float
as_json(options = nil) public

Encoding Infinity or NaN to JSON should return “null”. The default returns “Infinity” or “NaN” which are not valid JSON.

Show source
Register or log in to add new notes.