Method: BSON::MaxKey#as_json

Defined in:
lib/bson/max_key.rb

#as_json(*_args) ⇒ Hash

Return a representation of the object for use in application-level JSON serialization. Since BSON::MaxKey is used exclusively in BSON-related contexts, this method returns the canonical Extended JSON representation.

Returns:

  • (Hash)

    The extended json representation.

Since:

  • 2.0.0



61
62
63
# File 'lib/bson/max_key.rb', line 61

def as_json(*_args)
  as_extended_json
end