class BSON::Timestamp

def as_json(*args)

Deprecated:
  • Use as_extended_json instead.

Other tags:
    Since: - 2.0.0

Returns:
  • (Hash) - The timestamp as a JSON hash.

Other tags:
    Example: Get the timestamp as a JSON hash. -
def as_json(*args)
  as_extended_json
end