19 #include <bsoncxx/json-fwd.hpp>
21 #include <bsoncxx/array/view.hpp>
22 #include <bsoncxx/document/value.hpp>
23 #include <bsoncxx/document/view.hpp>
24 #include <bsoncxx/stdx/optional.hpp>
26 #include <bsoncxx/config/prelude.hpp>
83 BSONCXX_API
document::value BSONCXX_CALL
operator""_bson(
const char* json,
size_t len);
90 using ::bsoncxx::v_noabi::from_json;
91 using ::bsoncxx::v_noabi::to_json;
93 using ::bsoncxx::v_noabi::operator
""_bson;
97 #include <bsoncxx/config/postlude.hpp>
A read-only, non-owning view of a BSON document.
Definition: view.hpp:36
A read-only BSON document that owns its underlying buffer.
Definition: value.hpp:38
A read-only, non-owning view of a BSON document.
Definition: view.hpp:35
std::string to_json(document::view view, ExtendedJsonMode mode=ExtendedJsonMode::k_legacy)
Converts a BSON document to a JSON string, in extended format.
ExtendedJsonMode
An enumeration of the types of Extended JSON that the to_json function accepts.
Definition: json.hpp:33
@ k_relaxed
to produce Relaxed Extended JSON
@ k_legacy
to produce Legacy Extended JSON
@ k_canonical
to produce Canonical Extended JSON
document::value from_json(stdx::string_view json)
Constructs a new document::value from the provided JSON text.
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19