Details
-
New Feature
-
Resolution: Duplicate
-
Minor - P4
-
None
-
None
Description
nlohmann/json would be a superior bson interface compared to the current stream. It takes advantage of c++11, allowing for something like this:
json j2 = {
|
{"pi", 3.141},
|
{"happy", true},
|
{"name", "Niels"},
|
{"nothing", nullptr},
|
{"answer", {
|
{"everything", 42}
|
}},
|
{"list", {1, 0, 2}},
|
{"object", {
|
{"currency", "USD"},
|
{"value", 42.99}
|
}}
|
};
|