Template Function Common::extract_telemetry_value(const std::string&, const std::string&, T&)#
Defined in File common.h
Function Documentation#
-
template<typename T>
void Common::extract_telemetry_value(const std::string &jstring, const std::string &jkey, T &value)# extract a correctly typed value from a JSON message using a specific key
- Parameters:
jstring – [in] serialized JSON message string
jkey – [in] key to look for in JSON string
value – [out] reference of type T to value to return