BSON: Support empty objects
This commit is contained in:
parent
f06c8fd8e3
commit
5f5836ce1c
4 changed files with 124 additions and 33 deletions
|
@ -684,7 +684,8 @@ class binary_writer
|
|||
void write_bson_object(const BasicJsonType& j)
|
||||
{
|
||||
assert(j.type() == value_t::object);
|
||||
|
||||
write_number_little_endian(5);
|
||||
oa->write_character(static_cast<CharType>(0x00));
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue