module BSON::JSON
def to_json(*args)
- Since: - 2.0.0
Returns:
-
(String)
- The object as JSON.
Other tags:
- Note: - All types must implement as_json.
Other tags:
- Example: Convert the object to JSON -
def to_json(*args) as_json.to_json(*args) end