19 #include <bsoncxx/document/value.hpp>
20 #include <bsoncxx/document/view.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
23 #include <bsoncxx/config/prelude.hpp>
29 BSONCXX_INLINE_NAMESPACE_BEGIN
34 extern const bool k_silence_doxygen;
46 BSONCXX_API std::string BSONCXX_CALL
to_json(document::view view);
58 BSONCXX_API document::value BSONCXX_CALL
from_json(stdx::string_view json);
60 BSONCXX_INLINE_NAMESPACE_END
63 #include <bsoncxx/config/postlude.hpp>
document::value from_json(stdx::string_view json)
Constructs a new document::value from the provided JSON text.
std::string to_json(document::view view)
Converts a BSON document to a JSON string.
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24