Lines Matching refs:object

113     /* next/prev allow you to walk array/object chains. Alternatively, use GetArraySize/GetArrayItem/GetObjectItem */
116 /* An array or object item will have a child pointer pointing to a chain of the items in the array/object. */
134 /* The item's name string, if this item is the child of, or is in the list of subitems of an object. */
160 /* Supply a block of JSON, and this returns a cJSON object you can interrogate. */
180 /* Returns the number of items in an array (or object). */
184 /* Get item "string" from object. Case insensitive. */
185 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string);
186 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string);
187 CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string);
231 /* Create an object/array that only references it's elements so
243 /* Append item to the specified array/object. */
245 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item);
246 /* Use this when string is definitely const (i.e. a literal, or as good as), and will definitely survive the cJSON object.
249 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item);
250 /* 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. */
252 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item);
258 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string);
259 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string);
260 CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string);
261 CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string);
267 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObject(cJSON *object,const char *string,cJSON *newitem);
268 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object,const char *string,cJSON *newitem);
276 * case_sensitive determines if object keys are treated case sensitive (1) or case insensitive (0) */
284 /* Helper functions for creating and adding items to an object at the same time.
286 CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name);
287 CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name);
288 CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name);
289 CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean);
291 CJSON_PUBLIC(cJSON*) cJSON_AddInt64NumberToObject(cJSON * const object, const char * const name, const long long integer);
293 CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number);
294 CJSON_PUBLIC(cJSON*) cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string);
295 CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw);
296 CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name);
297 CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name);
300 CJSON_PUBLIC(long long) cJSON_SetInt64NumberValue(cJSON * const object, const long long integer);
303 #define cJSON_SetIntValue(object, number) ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))
305 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number);
306 #define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))
307 /* Change the valuestring of a cJSON_String object, only takes effect when type of object is cJSON_String */
308 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring);
310 /* If the object is not a boolean type this does nothing and returns cJSON_Invalid else it returns the new type*/
311 #define cJSON_SetBoolValue(object, boolValue) ( \
312 (object != NULL && ((object)->type & (cJSON_False|cJSON_True))) ? \
313 (object)->type=((object)->type &(~(cJSON_False|cJSON_True)))|((boolValue)?cJSON_True:cJSON_False) : \
317 /* Macro for iterating over an array or object */
322 CJSON_PUBLIC(void) cJSON_free(void *object);