MCPcopy Create free account
hub / github.com/chrxh/alien / parseValueFromKey

Function parseValueFromKey

source/Network/NetworkService.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51 template<typename T>
52 T parseValueFromKey(std::string const& jsonString, std::string const& key)
53 {
54 std::stringstream stream(jsonString);
55 boost::property_tree::ptree tree;
56 boost::property_tree::read_json(stream, tree);
57 return tree.get<T>(key);
58 }
59
60 bool parseBoolResult(std::string const& serverResponse)
61 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected