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

Conver doubles by from_json

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      How i can convert json with floating point?

      For exampl use src/bsoncxx/test/json.cpp, but

      constexpr auto k_valid_json = R"({ "a" : 1, "b" : 2.2556 })";
      

      in result i get

      { \"a\" : 1, \"b\" : 2.0 }
      

      is expected

      { \"a\" : 1, \"b\" : 2.2556 }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            evgeniy Evgeniy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: