Merging fix of bug/empty-json-parsing-failure #622

Merged
yviter merged 3 commits from bug/empty-json-parsing-failure into develop 2021-12-07 17:40:30 +00:00
Showing only changes of commit 87d685f254 - Show all commits

View file

@ -840,7 +840,7 @@ std::string rpc_client::retrieve_array_value_from_reply(std::string reply_str, s
boost::property_tree::ptree json;
boost::property_tree::read_json(ss, json);
if (json.find("result") == json.not_found()) {
return std::string();
return std::string();
}
auto json_result = json.get_child("result");
if (json_result.find(array_path) == json_result.not_found()) {