Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96de95d9 authored by Haibo Huang's avatar Haibo Huang Committed by Gerrit Code Review
Browse files

Merge "[libnblog] Use new jsoncpp API"

parents edc1fff4 ad1c2221
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -92,8 +92,8 @@ void dumpJson(int fd, const std::map<int, PerformanceData>& threadDataMap)
        (*dataJson)["threadNum"] = item.first;
        root.append(*dataJson);
    }
    Json::StyledWriter writer;
    std::string rootStr = writer.write(root);
    Json::StreamWriterBuilder factory;
    std::string rootStr = Json::writeString(factory, root);
    write(fd, rootStr.c_str(), rootStr.size());
}