mirror of
https://github.com/nlohmann/json.git
synced 2026-04-07 00:28:56 +00:00
BSON: support objects with objects as members
This commit is contained in:
@@ -231,10 +231,17 @@ class binary_reader
|
||||
sax->null();
|
||||
}
|
||||
break;
|
||||
case 0x03: // object
|
||||
{
|
||||
string_t key;
|
||||
get_bson_cstr(key);
|
||||
sax->key(key);
|
||||
parse_bson_internal();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
get();
|
||||
const auto result = sax->end_object();
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user