Lines Matching refs:item
45 struct cJSON *child; /* An array or object item will have a child pointer pointing to a chain of the items in the array/object. */
47 int type; /* The type of the item, as above. */
49 char *valuestring; /* The item's string, if type==cJSON_String */
50 int valueint; /* The item's number, if type==cJSON_Number */
51 double valuedouble; /* The item's number, if type==cJSON_Number */
54 char *string; /* The item's name string, if this item is the child of, or is in the list of subitems of an object. */
69 extern char *cJSON_Print(cJSON *item);
71 extern char *cJSON_PrintUnformatted(cJSON *item);
77 /* Retrieve item number "item" from array "array". Returns NULL if unsuccessful. */
78 extern cJSON *cJSON_GetArrayItem(cJSON *array,int item);
79 /* Get item "string" from object. Case insensitive. */
85 /* These calls create a cJSON item of the appropriate type. */
101 /* Append item to the specified array/object. */
102 extern void cJSON_AddItemToArray(cJSON *array, cJSON *item);
103 extern void cJSON_AddItemToObject(cJSON *object,const char *string,cJSON *item);
104 /* Append reference to item to the specified array/object. Use this when you want to add an existing cJSON to a new cJSON, but don't want to corrupt your existing cJSON. */
105 extern void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item);
106 extern void cJSON_AddItemReferenceToObject(cJSON *object,const char *string,cJSON *item);