1
0
mirror of https://github.com/nlohmann/json.git synced 2025-08-07 18:02:57 +03:00

BSON: support objects with null members

This commit is contained in:
Julian Becker
2018-09-15 11:38:26 +02:00
parent 6c447de076
commit c5ef023171
4 changed files with 63 additions and 0 deletions

View File

@@ -203,6 +203,14 @@ class binary_reader
sax->boolean(static_cast<bool>(get()));
}
break;
case 0x0A: // null
{
string_t key;
get_bson_cstr(key);
sax->key(key);
sax->null();
}
break;
}
}