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

Commit 3d22587c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "[automotive] Use new jsoncpp API"

parents 1f376685 0684d404
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -96,11 +96,12 @@ bool JsonFakeValueGenerator::hasNext() {
std::vector<VehiclePropValue> JsonFakeValueGenerator::parseFakeValueJson(std::istream& is) {
    std::vector<VehiclePropValue> fakeVhalEvents;

    Json::Reader reader;
    Json::CharReaderBuilder builder;
    Json::Value rawEvents;
    if (!reader.parse(is, rawEvents)) {
    std::string errorMessage;
    if (!Json::parseFromStream(builder, is, &rawEvents, &errorMessage)) {
        ALOGE("%s: Failed to parse fake data JSON file. Error: %s", __func__,
              reader.getFormattedErrorMessages().c_str());
              errorMessage.c_str());
        return fakeVhalEvents;
    }