Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1137

Alternative interface via nlohmann/json

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: BSON
    • Labels:

      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}
        }}
      };
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              clyde.bazile Clyde Bazile III
              Reporter:
              JoeyAndres Joey Andres
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: