class BSON::Decimal128
def as_json(*args)
-
(String | nil)
- The decimal128 as a String or nil for non-representable numbers.
Other tags:
- Example: Get the Decimal128 as a JSON-serializable object. -
def as_json(*args) value = to_s value unless %w[NaN Infinity -Infinity].include?(value) end