16 #include "cjson/cJSON.h" 111 #endif // __cplusplus size_t u_json_get_float_array(const cJSON *json_array, float *out_array, size_t max_size)
Parse up to max_size floats from a JSON array.
Definition: u_json.c:181
A 3 element vector with single floats.
Definition: xrt_defines.h:133
bool u_json_get_quat(const cJSON *json, struct xrt_quat *out_quat)
Parse a quaternion from a JSON object.
Definition: u_json.c:150
bool u_json_get_float(const cJSON *json, float *out_float)
Parse a float from a JSON object.
Definition: u_json.c:108
const cJSON * u_json_get(const cJSON *json, const char *f)
Get a JSON object by string from a JSON object.
Definition: u_json.c:31
struct cJSON cJSON
Definition: xrt_prober.h:26
A quaternion with single floats.
Definition: xrt_defines.h:99
Common defines and enums for XRT.
bool u_json_get_bool(const cJSON *json, bool *out_bool)
Parse an bool from a JSON object.
Definition: u_json.c:59
bool u_json_get_int(const cJSON *json, int *out_int)
Parse an int from a JSON object.
Definition: u_json.c:76
size_t u_json_get_double_array(const cJSON *json_array, double *out_array, size_t max_size)
Parse up to max_size doubles from a JSON array.
Definition: u_json.c:216
bool u_json_get_vec3(const cJSON *json, struct xrt_vec3 *out_vec3)
Parse a vec3 from a JSON object.
Definition: u_json.c:122
bool u_json_get_string_into_array(const cJSON *json, char *out, size_t max_size)
Parse a string from a JSON object into a char array.
Definition: u_json.c:37
Header holding common defines.
bool u_json_get_double(const cJSON *json, double *out_double)
Parse a double from a JSON object.
Definition: u_json.c:93