Conver doubles by from_json

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Incomplete
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 }
      

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

              Created:
              Updated:
              Resolved: