module BSON::ExtJSON

def parse_obj(value, **options)

Returns:
  • (Object) - Converted object tree.

Options Hash: (**options)
  • :mode (nil | :bson) -- Which types to emit

Parameters:
  • value (Object) -- The object tree to convert.

Other tags:
    Note: - This method accepts any types as input, not just Hash instances.

Other tags:
    Example: Convert a non-hash value: -
    Example: Convert extended JSON type hashes: -
def parse_obj(value, **options)
nt :ruby and :ruby! modes
bson].include?(options[:mode])
ntError, "Invalid value for :mode option: #{options[:mode].inspect}"
rueClass, FalseClass, NilClass, Numeric
alue, **options)
 |item|
item, **options)
:ExtJSONParseError, "Unknown value type: #{value}"