module BSON::ExtJSON
def map_hash(hash, **options)
def map_hash(hash, **options) p do |key, value| ?(String) || key.is_a?(Symbol)) && key.to_s.include?(NULL_BYTE) r::ExtJSONParseError, "Hash key cannot contain a null byte: #{key}" obj(value, **options)]