Lines Matching refs:cJSON
99 CJSON_PUBLIC(char *) cJSON_GetStringValue(const cJSON * const item) in cJSON_GetStringValue()
109 CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item) in cJSON_GetNumberValue()
121 #error cJSON.h and cJSON.c have different versions. Make sure that both have the same.
241 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item()
243 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()
246 memset(node, '\0', sizeof(cJSON)); in cJSON_New_Item()
253 CJSON_PUBLIC(void) cJSON_Delete(cJSON *item) in cJSON_Delete()
255 cJSON *next = NULL; in cJSON_Delete()
305 static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer) in parse_number()
382 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number) in cJSON_SetNumberHelper()
400 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring()
545 static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer) in print_number()
769 static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer) in parse_string()
1020 static cJSON_bool print_string(const cJSON * const item, printbuffer * const p) in print_string()
1026 static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer);
1027 static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer);
1028 static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer);
1029 static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer);
1030 static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer);
1031 static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer);
1075 CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_b… in cJSON_ParseWithOpts()
1091 CJSON_PUBLIC(cJSON *) cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char… in cJSON_ParseWithLengthOpts()
1094 cJSON *item = NULL; in cJSON_ParseWithLengthOpts()
1171 CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value) in cJSON_Parse()
1176 CJSON_PUBLIC(cJSON *) cJSON_ParseWithLength(const char *value, size_t buffer_length) in cJSON_ParseWithLength()
1183 static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * con… in print()
1248 CJSON_PUBLIC(char *) cJSON_Print(const cJSON *item) in cJSON_Print()
1253 CJSON_PUBLIC(char *) cJSON_PrintUnformatted(const cJSON *item) in cJSON_PrintUnformatted()
1258 CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt) in cJSON_PrintBuffered()
1288 CJSON_PUBLIC(cJSON_bool) cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const… in cJSON_PrintPreallocated()
1308 static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer) in parse_value()
1363 static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer) in print_value()
1437 static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer) in parse_array()
1439 cJSON *head = NULL; /* head of the linked list */ in parse_array()
1440 cJSON *current_item = NULL; in parse_array()
1475 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_array()
1535 static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer) in print_array()
1539 cJSON *current_element = item->child; in print_array()
1597 static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer) in parse_object()
1599 cJSON *head = NULL; /* linked list head */ in parse_object()
1600 cJSON *current_item = NULL; in parse_object()
1633 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_object()
1710 static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer) in print_object()
1714 cJSON *current_item = item->child; in print_object()
1824 CJSON_PUBLIC(int) cJSON_GetArraySize(const cJSON *array) in cJSON_GetArraySize()
1826 cJSON *child = NULL; in cJSON_GetArraySize()
1847 static cJSON* get_array_item(const cJSON *array, size_t index) in get_array_item()
1849 cJSON *current_child = NULL; in get_array_item()
1866 CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index) in cJSON_GetArrayItem()
1876 static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool… in get_object_item()
1878 cJSON *current_element = NULL; in get_object_item()
1908 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string) in cJSON_GetObjectItem()
1913 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * con… in cJSON_GetObjectItemCaseSensitive()
1918 CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string) in cJSON_HasObjectItem()
1924 static void suffix_object(cJSON *prev, cJSON *item) in suffix_object()
1931 static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks) in create_reference()
1933 cJSON *reference = NULL; in create_reference()
1945 memcpy(reference, item, sizeof(cJSON)); in create_reference()
1952 static cJSON_bool add_item_to_array(cJSON *array, cJSON *item) in add_item_to_array()
1954 cJSON *child = NULL; in add_item_to_array()
1986 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToArray(cJSON *array, cJSON *item) in cJSON_AddItemToArray()
2007 static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const… in add_item_to_object()
2044 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObject()
2050 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObjectCS()
2055 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) in cJSON_AddItemReferenceToArray()
2065 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *i… in cJSON_AddItemReferenceToObject()
2075 CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) in cJSON_AddNullToObject()
2077 cJSON *null = cJSON_CreateNull(); in cJSON_AddNullToObject()
2087 CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) in cJSON_AddTrueToObject()
2089 cJSON *true_item = cJSON_CreateTrue(); in cJSON_AddTrueToObject()
2099 CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) in cJSON_AddFalseToObject()
2101 cJSON *false_item = cJSON_CreateFalse(); in cJSON_AddFalseToObject()
2111 CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJS… in cJSON_AddBoolToObject()
2113 cJSON *bool_item = cJSON_CreateBool(boolean); in cJSON_AddBoolToObject()
2123 CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const d… in cJSON_AddNumberToObject()
2125 cJSON *number_item = cJSON_CreateNumber(number); in cJSON_AddNumberToObject()
2135 CJSON_PUBLIC(cJSON*) cJSON_AddStringToObject(cJSON * const object, const char * const name, const c… in cJSON_AddStringToObject()
2137 cJSON *string_item = cJSON_CreateString(string); in cJSON_AddStringToObject()
2147 CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char… in cJSON_AddRawToObject()
2149 cJSON *raw_item = cJSON_CreateRaw(raw); in cJSON_AddRawToObject()
2159 CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) in cJSON_AddObjectToObject()
2161 cJSON *object_item = cJSON_CreateObject(); in cJSON_AddObjectToObject()
2171 CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) in cJSON_AddArrayToObject()
2173 cJSON *array = cJSON_CreateArray(); in cJSON_AddArrayToObject()
2183 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) in cJSON_DetachItemViaPointer()
2219 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which) in cJSON_DetachItemFromArray()
2229 CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which) in cJSON_DeleteItemFromArray()
2234 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string) in cJSON_DetachItemFromObject()
2236 cJSON *to_detach = cJSON_GetObjectItem(object, string); in cJSON_DetachItemFromObject()
2241 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DetachItemFromObjectCaseSensitive()
2243 cJSON *to_detach = cJSON_GetObjectItemCaseSensitive(object, string); in cJSON_DetachItemFromObjectCaseSensitive()
2248 CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string) in cJSON_DeleteItemFromObject()
2253 CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DeleteItemFromObjectCaseSensitive()
2259 CJSON_PUBLIC(cJSON_bool) cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem) in cJSON_InsertItemInArray()
2261 cJSON *after_inserted = NULL; in cJSON_InsertItemInArray()
2288 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSO… in cJSON_ReplaceItemViaPointer()
2337 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem) in cJSON_ReplaceItemInArray()
2347 static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJS… in replace_item_in_object()
2365 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newite… in cJSON_ReplaceItemInObject()
2370 …BLIC(cJSON_bool) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *… in cJSON_ReplaceItemInObjectCaseSensitive()
2376 CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void) in cJSON_CreateNull()
2378 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNull()
2387 CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void) in cJSON_CreateTrue()
2389 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateTrue()
2398 CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void) in cJSON_CreateFalse()
2400 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateFalse()
2409 CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean) in cJSON_CreateBool()
2411 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateBool()
2420 CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num) in cJSON_CreateNumber()
2422 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNumber()
2446 CJSON_PUBLIC(cJSON *) cJSON_CreateString(const char *string) in cJSON_CreateString()
2448 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateString()
2463 CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string) in cJSON_CreateStringReference()
2465 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateStringReference()
2475 CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) in cJSON_CreateObjectReference()
2477 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateObjectReference()
2480 item->child = (cJSON*)cast_away_const(child); in cJSON_CreateObjectReference()
2486 CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { in cJSON_CreateArrayReference()
2487 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateArrayReference()
2490 item->child = (cJSON*)cast_away_const(child); in cJSON_CreateArrayReference()
2496 CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) in cJSON_CreateRaw()
2498 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateRaw()
2513 CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void) in cJSON_CreateArray()
2515 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateArray()
2524 CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void) in cJSON_CreateObject()
2526 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateObject()
2536 CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count) in cJSON_CreateIntArray()
2539 cJSON *n = NULL; in cJSON_CreateIntArray()
2540 cJSON *p = NULL; in cJSON_CreateIntArray()
2541 cJSON *a = NULL; in cJSON_CreateIntArray()
2576 CJSON_PUBLIC(cJSON *) cJSON_CreateFloatArray(const float *numbers, int count) in cJSON_CreateFloatArray()
2579 cJSON *n = NULL; in cJSON_CreateFloatArray()
2580 cJSON *p = NULL; in cJSON_CreateFloatArray()
2581 cJSON *a = NULL; in cJSON_CreateFloatArray()
2616 CJSON_PUBLIC(cJSON *) cJSON_CreateDoubleArray(const double *numbers, int count) in cJSON_CreateDoubleArray()
2619 cJSON *n = NULL; in cJSON_CreateDoubleArray()
2620 cJSON *p = NULL; in cJSON_CreateDoubleArray()
2621 cJSON *a = NULL; in cJSON_CreateDoubleArray()
2656 CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char *const *strings, int count) in cJSON_CreateStringArray()
2659 cJSON *n = NULL; in cJSON_CreateStringArray()
2660 cJSON *p = NULL; in cJSON_CreateStringArray()
2661 cJSON *a = NULL; in cJSON_CreateStringArray()
2697 CJSON_PUBLIC(cJSON *) cJSON_Duplicate(const cJSON *item, cJSON_bool recurse) in cJSON_Duplicate()
2699 cJSON *newitem = NULL; in cJSON_Duplicate()
2700 cJSON *child = NULL; in cJSON_Duplicate()
2701 cJSON *next = NULL; in cJSON_Duplicate()
2702 cJSON *newchild = NULL; in cJSON_Duplicate()
2877 CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON * const item) in cJSON_IsInvalid()
2887 CJSON_PUBLIC(cJSON_bool) cJSON_IsFalse(const cJSON * const item) in cJSON_IsFalse()
2897 CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON * const item) in cJSON_IsTrue()
2908 CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item) in cJSON_IsBool()
2917 CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item) in cJSON_IsNull()
2927 CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON * const item) in cJSON_IsNumber()
2937 CJSON_PUBLIC(cJSON_bool) cJSON_IsString(const cJSON * const item) in cJSON_IsString()
2947 CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON * const item) in cJSON_IsArray()
2957 CJSON_PUBLIC(cJSON_bool) cJSON_IsObject(const cJSON * const item) in cJSON_IsObject()
2967 CJSON_PUBLIC(cJSON_bool) cJSON_IsRaw(const cJSON * const item) in cJSON_IsRaw()
2977 CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bo… in cJSON_Compare()
3037 cJSON *a_element = a->child; in cJSON_Compare()
3038 cJSON *b_element = b->child; in cJSON_Compare()
3061 cJSON *a_element = NULL; in cJSON_Compare()
3062 cJSON *b_element = NULL; in cJSON_Compare()