ZD_STATUS Language::LoadNode(JsonBox::Value &node, const std::string &prefix) { if (node.isObject()) { JsonBox::Object obj = node.getObject(); for (auto &i : obj) { std::stringstream new_prefix; if (prefix.length() > 0) { new_prefix << prefix << m_delimiter; } new_prefix << i.first; LoadNode(i.second, new_prefix.str()); } } else if (node.isString()) { m_words[prefix] = node.getString(); } else if (node.isInteger()) { m_words[prefix] = Helpers::String::To(node.getInt()); } return ZD_NOERROR; }
inline void unserialize(const JsonBox::Value & o, std::string & s) { s = o.getString(); }