! @param[in] j JSON value to serialize @pre j.type() == value_t::object */
| 13939 | @pre j.type() == value_t::object |
| 13940 | */ |
| 13941 | void write_bson_object(const typename BasicJsonType::object_t& value) |
| 13942 | { |
| 13943 | write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_object_size(value))); |
| 13944 | |
| 13945 | for (const auto& el : value) |
| 13946 | { |
| 13947 | write_bson_element(el.first, el.second); |
| 13948 | } |
| 13949 | |
| 13950 | oa->write_character(to_char_type(0x00)); |
| 13951 | } |
| 13952 | |
| 13953 | ////////// |
| 13954 | // CBOR // |
nothing calls this directly
no test coverage detected