Lines Matching refs:cJSON
73 #error cJSON.h and cJSON.c have different versions. Make sure that both have the same.
169 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item()
171 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()
174 memset(node, '\0', sizeof(cJSON)); in cJSON_New_Item()
181 CJSON_PUBLIC(void) cJSON_Delete(cJSON *item) in cJSON_Delete()
183 cJSON *next = NULL; in cJSON_Delete()
230 static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer) in parse_number()
307 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number) in cJSON_SetNumberHelper()
430 static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer) in print_number()
654 static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer) in parse_string()
905 static cJSON_bool print_string(const cJSON * const item, printbuffer * const p) in print_string()
911 static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer);
912 static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer);
913 static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer);
914 static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer);
915 static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer);
916 static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer);
940 CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_b… in cJSON_ParseWithOpts()
943 cJSON *item = NULL; in cJSON_ParseWithOpts()
1022 CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value) in cJSON_Parse()
1029 static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * con… in print()
1092 CJSON_PUBLIC(char *) cJSON_Print(const cJSON *item) in cJSON_Print()
1097 CJSON_PUBLIC(char *) cJSON_PrintUnformatted(const cJSON *item) in cJSON_PrintUnformatted()
1102 CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt) in cJSON_PrintBuffered()
1131 CJSON_PUBLIC(cJSON_bool) cJSON_PrintPreallocated(cJSON *item, char *buf, const int len, const cJSON… in cJSON_PrintPreallocated()
1151 static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer) in parse_value()
1207 static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer) in print_value()
1285 static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer) in parse_array()
1287 cJSON *head = NULL; /* head of the linked list */ in parse_array()
1288 cJSON *current_item = NULL; in parse_array()
1323 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_array()
1379 static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer) in print_array()
1383 cJSON *current_element = item->child; in print_array()
1441 static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer) in parse_object()
1443 cJSON *head = NULL; /* linked list head */ in parse_object()
1444 cJSON *current_item = NULL; in parse_object()
1477 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_object()
1550 static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer) in print_object()
1554 cJSON *current_item = item->child; in print_object()
1664 CJSON_PUBLIC(int) cJSON_GetArraySize(const cJSON *array) in cJSON_GetArraySize()
1666 cJSON *c = array->child; in cJSON_GetArraySize()
1679 static cJSON* get_array_item(const cJSON *array, size_t index) in get_array_item()
1681 cJSON *current_child = NULL; in get_array_item()
1698 CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index) in cJSON_GetArrayItem()
1708 static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool… in get_object_item()
1710 cJSON *current_element = NULL; in get_object_item()
1736 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string) in cJSON_GetObjectItem()
1741 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * con… in cJSON_GetObjectItemCaseSensitive()
1746 CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string) in cJSON_HasObjectItem()
1752 static void suffix_object(cJSON *prev, cJSON *item) in suffix_object()
1759 static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks) in create_reference()
1761 cJSON *ref = cJSON_New_Item(hooks); in create_reference()
1766 memcpy(ref, item, sizeof(cJSON)); in create_reference()
1774 CJSON_PUBLIC(void) cJSON_AddItemToArray(cJSON *array, cJSON *item) in cJSON_AddItemToArray()
1776 cJSON *child = NULL; in cJSON_AddItemToArray()
1801 CJSON_PUBLIC(void) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObject()
1817 CJSON_PUBLIC(void) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObjectCS()
1835 CJSON_PUBLIC(void) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) in cJSON_AddItemReferenceToArray()
1840 CJSON_PUBLIC(void) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemReferenceToObject()
1845 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) in cJSON_DetachItemViaPointer()
1875 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which) in cJSON_DetachItemFromArray()
1885 CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which) in cJSON_DeleteItemFromArray()
1890 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string) in cJSON_DetachItemFromObject()
1892 cJSON *to_detach = cJSON_GetObjectItem(object, string); in cJSON_DetachItemFromObject()
1897 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DetachItemFromObjectCaseSensitive()
1899 cJSON *to_detach = cJSON_GetObjectItemCaseSensitive(object, string); in cJSON_DetachItemFromObjectCaseSensitive()
1904 CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string) in cJSON_DeleteItemFromObject()
1909 CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DeleteItemFromObjectCaseSensitive()
1915 CJSON_PUBLIC(void) cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem) in cJSON_InsertItemInArray()
1917 cJSON *after_inserted = NULL; in cJSON_InsertItemInArray()
1944 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSO… in cJSON_ReplaceItemViaPointer()
1979 CJSON_PUBLIC(void) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem) in cJSON_ReplaceItemInArray()
1989 CJSON_PUBLIC(void) cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem) in cJSON_ReplaceItemInObject()
1994 CJSON_PUBLIC(void) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON … in cJSON_ReplaceItemInObjectCaseSensitive()
2000 CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void) in cJSON_CreateNull()
2002 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNull()
2011 CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void) in cJSON_CreateTrue()
2013 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateTrue()
2022 CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void) in cJSON_CreateFalse()
2024 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateFalse()
2033 CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool b) in cJSON_CreateBool()
2035 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateBool()
2044 CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num) in cJSON_CreateNumber()
2046 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNumber()
2070 CJSON_PUBLIC(cJSON *) cJSON_CreateString(const char *string) in cJSON_CreateString()
2072 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateString()
2087 CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) in cJSON_CreateRaw()
2089 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateRaw()
2104 CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void) in cJSON_CreateArray()
2106 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateArray()
2115 CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void) in cJSON_CreateObject()
2117 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateObject()
2127 CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count) in cJSON_CreateIntArray()
2130 cJSON *n = NULL; in cJSON_CreateIntArray()
2131 cJSON *p = NULL; in cJSON_CreateIntArray()
2132 cJSON *a = NULL; in cJSON_CreateIntArray()
2162 CJSON_PUBLIC(cJSON *) cJSON_CreateFloatArray(const float *numbers, int count) in cJSON_CreateFloatArray()
2165 cJSON *n = NULL; in cJSON_CreateFloatArray()
2166 cJSON *p = NULL; in cJSON_CreateFloatArray()
2167 cJSON *a = NULL; in cJSON_CreateFloatArray()
2198 CJSON_PUBLIC(cJSON *) cJSON_CreateDoubleArray(const double *numbers, int count) in cJSON_CreateDoubleArray()
2201 cJSON *n = NULL; in cJSON_CreateDoubleArray()
2202 cJSON *p = NULL; in cJSON_CreateDoubleArray()
2203 cJSON *a = NULL; in cJSON_CreateDoubleArray()
2234 CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char **strings, int count) in cJSON_CreateStringArray()
2237 cJSON *n = NULL; in cJSON_CreateStringArray()
2238 cJSON *p = NULL; in cJSON_CreateStringArray()
2239 cJSON *a = NULL; in cJSON_CreateStringArray()
2271 CJSON_PUBLIC(cJSON *) cJSON_Duplicate(const cJSON *item, cJSON_bool recurse) in cJSON_Duplicate()
2273 cJSON *newitem = NULL; in cJSON_Duplicate()
2274 cJSON *child = NULL; in cJSON_Duplicate()
2275 cJSON *next = NULL; in cJSON_Duplicate()
2276 cJSON *newchild = NULL; in cJSON_Duplicate()
2414 CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON * const item) in cJSON_IsInvalid()
2424 CJSON_PUBLIC(cJSON_bool) cJSON_IsFalse(const cJSON * const item) in cJSON_IsFalse()
2434 CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON * const item) in cJSON_IsTrue()
2445 CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item) in cJSON_IsBool()
2454 CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item) in cJSON_IsNull()
2464 CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON * const item) in cJSON_IsNumber()
2474 CJSON_PUBLIC(cJSON_bool) cJSON_IsString(const cJSON * const item) in cJSON_IsString()
2484 CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON * const item) in cJSON_IsArray()
2494 CJSON_PUBLIC(cJSON_bool) cJSON_IsObject(const cJSON * const item) in cJSON_IsObject()
2504 CJSON_PUBLIC(cJSON_bool) cJSON_IsRaw(const cJSON * const item) in cJSON_IsRaw()
2514 CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bo… in cJSON_Compare()
2574 cJSON *a_element = a->child; in cJSON_Compare()
2575 cJSON *b_element = b->child; in cJSON_Compare()
2593 cJSON *a_element = NULL; in cJSON_Compare()
2597 cJSON *b_element = get_object_item(b, a_element->string, case_sensitive); in cJSON_Compare()