mirror of
https://github.com/nlohmann/json.git
synced 2025-07-21 04:22:05 +03:00
BSON: test case for a more complex document
This commit is contained in:
@ -8633,7 +8633,7 @@ class binary_writer
|
||||
switch (j.type())
|
||||
{
|
||||
default:
|
||||
JSON_THROW(type_error::create(317, "JSON value cannot be serialized to requested format"));
|
||||
JSON_THROW(type_error::create(317, "JSON value of type be serialized to requested format: " + std::to_string((int)j.type())));
|
||||
break;
|
||||
case value_t::object:
|
||||
return write_bson_object_internal(name, j);
|
||||
|
Reference in New Issue
Block a user