70 void set(
const char *json_string){ json_object = json::parse(json_string);}
74 bool hasObject(
const char *var){
return json_object.count(var)>0;}
78 float getFloat(
const char *var){
return (
float) json_object[var];}
Simple JSON parsing and value extraction utility.
void set(const char *json_string)
Parse a JSON string into the internal object.
bool hasObject(const char *var)
Check whether a key exists in the parsed JSON.
float getFloat(const char *var)
Get a float value by key from the parsed JSON.