36 const char *valueAsString =
"";
37 if (json_object_get_type(js) == json_type_string)
38 valueAsString = json_object_get_string(js);
42 if (strcmp(valueAsString,
"bipolar") == 0)
43 value = VuoDiode_Bipolar;
44 else if (strcmp(valueAsString,
"absolute") == 0)
45 value = VuoDiode_Absolute;