MongoDB C++ Driver mongocxx-4.0.0
Loading...
Searching...
No Matches
json.hpp File Reference

Description

Provides utilities to convert between BSON and JSON representations.

Go to the source code of this file.

Namespaces

namespace  bsoncxx
 The top-level namespace within which all bsoncxx library entities are declared.
 
namespace  bsoncxx::v_noabi
 Declares entities whose ABI stability is NOT guaranteed.
 

Enumerations

enum class  bsoncxx::v_noabi::ExtendedJsonMode : std::uint8_t
 An enumeration of the types of Extended JSON that the to_json function accepts. More...
 

Functions

v_noabi::document::value bsoncxx::from_json (v_noabi::stdx::string_view json)
 bsoncxx::v_noabi::from_json(v_noabi::stdx::string_view json)
 
document::value bsoncxx::v_noabi::from_json (stdx::string_view json)
 Constructs a new document::value from the provided JSON text.
 
v_noabi::document::value bsoncxx::operator""_bson (const char *json, std::size_t len)
 bsoncxx::v_noabi::operator ""_bson(const char* json, size_t len)
 
document::value bsoncxx::v_noabi::operator""_bson (const char *json, size_t len)
 Constructs a new document::value from the provided JSON text. This is the UDL version of from_json().
 
std::string bsoncxx::to_json (v_noabi::array::view view, v_noabi::ExtendedJsonMode mode=ExtendedJsonMode::k_legacy)
 bsoncxx::v_noabi::to_json(v_noabi::array::view view, v_noabi::ExtendedJsonMode mode)
 
std::string bsoncxx::to_json (v_noabi::document::view view, v_noabi::ExtendedJsonMode mode=ExtendedJsonMode::k_legacy)
 bsoncxx::v_noabi::to_json(v_noabi::document::view view, v_noabi::ExtendedJsonMode mode)
 
std::string bsoncxx::v_noabi::to_json (array::view view, ExtendedJsonMode mode=ExtendedJsonMode::k_legacy)
 Converts a BSON document to a JSON string, in extended format.
 
std::string bsoncxx::v_noabi::to_json (document::view view, ExtendedJsonMode mode=ExtendedJsonMode::k_legacy)
 Converts a BSON document to a JSON string, in extended format.