This commit is contained in:
woodser
2019-10-09 10:51:44 -04:00
parent 480f1e45cc
commit eaac2199a5
+1
View File
@@ -451,6 +451,7 @@ string monero_utils::serialize(const boost::property_tree::ptree& node) {
return str.substr(0, str.size() - 1); // strip newline
}
// TODO: switch deserializes in this utils class to use this deserialize util
boost::property_tree::ptree monero_utils::deserialize(const string& json) {
std::istringstream iss = json.empty() ? std::istringstream() : std::istringstream(json);
boost::property_tree::ptree node;