35 #define cJSON_Number 3 36 #define cJSON_String 4 38 #define cJSON_Object 6 40 #define cJSON_IsReference 256 57 void *(*malloc_fn)(
size_t sz);
58 void (*free_fn)(
void *ptr);
117 #define cJSON_AddNullToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateNull()) 118 #define cJSON_AddTrueToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateTrue()) 119 #define cJSON_AddFalseToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateFalse()) 120 #define cJSON_AddNumberToObject(object,name,n) cJSON_AddItemToObject(object, name, cJSON_CreateNumber(n)) 121 #define cJSON_AddStringToObject(object,name,s) cJSON_AddItemToObject(object, name, cJSON_CreateString(s)) cJSON * cJSON_CreateNumber(double num)
Definition: cJSON.c:727
void cJSON_InitHooks(cJSON_Hooks *hooks)
Definition: cJSON.c:61
cJSON * cJSON_DetachItemFromArray(cJSON *array, int which)
Definition: cJSON.c:659
void cJSON_Delete(cJSON *c)
Definition: cJSON.c:80
void cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)
Definition: cJSON.c:646
cJSON * cJSON_CreateNull(void)
Definition: cJSON.c:707
int valueint
Definition: cJSON.h:50
char * valuestring
Definition: cJSON.h:49
void cJSON_DeleteItemFromArray(cJSON *array, int which)
Definition: cJSON.c:669
const char * cJSON_GetErrorPtr(void)
Definition: cJSON.c:37
cJSON * cJSON_CreateFalse(void)
Definition: cJSON.c:717
static GValue value
Definition: datawindow.c:42
char * cJSON_PrintUnformatted(cJSON *item)
Definition: cJSON.c:323
cJSON * cJSON_CreateArray(void)
Definition: cJSON.c:744
cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string)
Definition: cJSON.c:672
cJSON * cJSON_CreateObject(void)
Definition: cJSON.c:749
cJSON * cJSON_CreateFloatArray(float *numbers, int count)
Definition: cJSON.c:767
void cJSON_DeleteItemFromObject(cJSON *object, const char *string)
Definition: cJSON.c:679
struct cJSON * child
Definition: cJSON.h:45
char * string
Definition: cJSON.h:53
void cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)
Definition: cJSON.c:696
cJSON * cJSON_GetArrayItem(cJSON *array, int item)
Definition: cJSON.c:608
void cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
Definition: cJSON.c:684
cJSON * cJSON_Parse(const char *value)
Definition: cJSON.c:307
cJSON * cJSON_CreateDoubleArray(double *numbers, int count)
Definition: cJSON.c:778
struct cJSON * next
Definition: cJSON.h:44
int cJSON_GetArraySize(cJSON *array)
Definition: cJSON.c:602
struct cJSON_Hooks cJSON_Hooks
void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)
Definition: cJSON.c:652
cJSON * cJSON_CreateBool(int b)
Definition: cJSON.c:722
void cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
Definition: cJSON.c:655
char * cJSON_Print(cJSON *item)
Definition: cJSON.c:320
cJSON * cJSON_CreateString(const char *string)
Definition: cJSON.c:736
struct cJSON * prev
Definition: cJSON.h:44
int type
Definition: cJSON.h:47
cJSON * cJSON_CreateIntArray(int *numbers, int count)
Definition: cJSON.c:756
cJSON * cJSON_CreateStringArray(const char **strings, int count)
Definition: cJSON.c:789
double valuedouble
Definition: cJSON.h:51
cJSON * cJSON_CreateTrue(void)
Definition: cJSON.c:712
void cJSON_AddItemToArray(cJSON *array, cJSON *item)
Definition: cJSON.c:636
cJSON * cJSON_GetObjectItem(cJSON *object, const char *string)
Definition: cJSON.c:613