cJSON * json_object_decode(cJSON *obj, const char *str)
void json_add_obj(cJSON *parent, const char *str, cJSON *item)
Associate a child object with a parent.
int json_add_number_to_array(cJSON *parent, double number)
Add number to array object.
void json_print_obj(const char *prefix, const cJSON *obj)
int json_add_number(cJSON *parent, const char *str, double item)
int json_add_bool(cJSON *parent, const char *str, int item)
void json_add_obj_array(cJSON *parent, cJSON *item)
Add item to array object.
int json_add_str(cJSON *parent, const char *str, const char *item)