! @param[in] value JSON value to serialize @pre value.type() == value_t::object */
| 16187 | @pre value.type() == value_t::object |
| 16188 | */ |
| 16189 | void write_bson_object(const typename BasicJsonType::object_t& value) |
| 16190 | { |
| 16191 | write_number<std::int32_t>(static_cast<std::int32_t>(calc_bson_object_size(value)), true); |
| 16192 | |
| 16193 | for (const auto& el : value) |
| 16194 | { |
| 16195 | write_bson_element(el.first, el.second); |
| 16196 | } |
| 16197 | |
| 16198 | oa->write_character(to_char_type(0x00)); |
| 16199 | } |
| 16200 | |
| 16201 | ////////// |
| 16202 | // CBOR // |
nothing calls this directly
no test coverage detected