Lines Matching refs:cJSON

99 CJSON_PUBLIC(char *) cJSON_GetStringValue(const cJSON *const item)  in cJSON_GetStringValue()
106 CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON *const item) in cJSON_GetNumberValue()
115 #error cJSON.h and cJSON.c have different versions. Make sure that both have the same.
208 static cJSON *cJSON_New_Item(const internal_hooks *const hooks) in cJSON_New_Item()
210 cJSON *node = (cJSON *)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()
211 if (node) memset(node, '\0', sizeof(cJSON)); in cJSON_New_Item()
217 CJSON_PUBLIC(void) cJSON_Delete(cJSON *item) in cJSON_Delete()
219 cJSON *next = NULL; in cJSON_Delete()
258 static cJSON_bool parse_number(cJSON *const item, parse_buffer *const input_buffer) in parse_number()
322 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number) in cJSON_SetNumberHelper()
335 CJSON_PUBLIC(char *) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring()
445 static cJSON_bool print_number(const cJSON *const item, printbuffer *const output_buffer) in print_number()
624 static cJSON_bool parse_string(cJSON *const item, parse_buffer *const input_buffer) in parse_string()
828 static cJSON_bool print_string(const cJSON *const item, printbuffer *const p) in print_string()
834 static cJSON_bool parse_value(cJSON *const item, parse_buffer *const input_buffer);
835 static cJSON_bool print_value(const cJSON *const item, printbuffer *const output_buffer);
836 static cJSON_bool parse_array(cJSON *const item, parse_buffer *const input_buffer);
837 static cJSON_bool print_array(const cJSON *const item, printbuffer *const output_buffer);
838 static cJSON_bool parse_object(cJSON *const item, parse_buffer *const input_buffer);
839 static cJSON_bool print_object(const cJSON *const item, printbuffer *const output_buffer);
865 CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_b… in cJSON_ParseWithOpts()
878 CJSON_PUBLIC(cJSON *) cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char… in cJSON_ParseWithLengthOpts()
883 cJSON *item = NULL; in cJSON_ParseWithLengthOpts()
939 CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value) in cJSON_Parse()
944 CJSON_PUBLIC(cJSON *) cJSON_ParseWithLength(const char *value, size_t buffer_length) in cJSON_ParseWithLength()
951 static unsigned char *print(const cJSON *const item, cJSON_bool format, const internal_hooks *const… in print()
997 CJSON_PUBLIC(char *) cJSON_Print(const cJSON *item) in cJSON_Print()
1002 CJSON_PUBLIC(char *) cJSON_PrintUnformatted(const cJSON *item) in cJSON_PrintUnformatted()
1007 CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt) in cJSON_PrintBuffered()
1032 CJSON_PUBLIC(cJSON_bool) cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const… in cJSON_PrintPreallocated()
1051 static cJSON_bool parse_value(cJSON *const item, parse_buffer *const input_buffer) in parse_value()
1088 static cJSON_bool print_value(const cJSON *const item, printbuffer *const output_buffer) in print_value()
1142 static cJSON_bool parse_array(cJSON *const item, parse_buffer *const input_buffer) in parse_array()
1144 cJSON *head = NULL; /* head of the linked list */ in parse_array()
1145 cJSON *current_item = NULL; in parse_array()
1173 cJSON *new_item = cJSON_New_Item(&input_buffer->hooks); in parse_array()
1215 static cJSON_bool print_array(const cJSON *const item, printbuffer *const output_buffer) in print_array()
1219 cJSON *current_element = item->child; in print_array()
1257 static cJSON_bool parse_object(cJSON *const item, parse_buffer *const input_buffer) in parse_object()
1259 cJSON *head = NULL; /* linked list head */ in parse_object()
1260 cJSON *current_item = NULL; in parse_object()
1282 cJSON *new_item = cJSON_New_Item(&input_buffer->hooks); in parse_object()
1335 static cJSON_bool print_object(const cJSON *const item, printbuffer *const output_buffer) in print_object()
1339 cJSON *current_item = item->child; in print_object()
1404 CJSON_PUBLIC(int) cJSON_GetArraySize(const cJSON *array) in cJSON_GetArraySize()
1406 cJSON *child = NULL; in cJSON_GetArraySize()
1423 static cJSON *get_array_item(const cJSON *array, size_t index) in get_array_item()
1425 cJSON *current_child = NULL; in get_array_item()
1438 CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index) in cJSON_GetArrayItem()
1445 static cJSON *get_object_item(const cJSON *const object, const char *const name, const cJSON_bool c… in get_object_item()
1447 cJSON *current_element = NULL; in get_object_item()
1463 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON *const object, const char *const string) in cJSON_GetObjectItem()
1468 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON *const object, const char *const… in cJSON_GetObjectItemCaseSensitive()
1473 CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string) in cJSON_HasObjectItem()
1479 static void suffix_object(cJSON *prev, cJSON *item) in suffix_object()
1486 static cJSON *create_reference(const cJSON *item, const internal_hooks *const hooks) in create_reference()
1488 cJSON *reference = NULL; in create_reference()
1494 memcpy(reference, item, sizeof(cJSON)); in create_reference()
1501 static cJSON_bool add_item_to_array(cJSON *array, cJSON *item) in add_item_to_array()
1503 cJSON *child = NULL; in add_item_to_array()
1528 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToArray(cJSON *array, cJSON *item) in cJSON_AddItemToArray()
1548 static cJSON_bool add_item_to_object(cJSON *const object, const char *const string, cJSON *const it… in add_item_to_object()
1573 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObject()
1579 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObjectCS()
1584 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) in cJSON_AddItemReferenceToArray()
1591 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *i… in cJSON_AddItemReferenceToObject()
1598 CJSON_PUBLIC(cJSON *) cJSON_AddNullToObject(cJSON *const object, const char *const name) in cJSON_AddNullToObject()
1600 cJSON *null = cJSON_CreateNull(); in cJSON_AddNullToObject()
1607 CJSON_PUBLIC(cJSON *) cJSON_AddTrueToObject(cJSON *const object, const char *const name) in cJSON_AddTrueToObject()
1609 cJSON *true_item = cJSON_CreateTrue(); in cJSON_AddTrueToObject()
1616 CJSON_PUBLIC(cJSON *) cJSON_AddFalseToObject(cJSON *const object, const char *const name) in cJSON_AddFalseToObject()
1618 cJSON *false_item = cJSON_CreateFalse(); in cJSON_AddFalseToObject()
1625 CJSON_PUBLIC(cJSON *) cJSON_AddBoolToObject(cJSON *const object, const char *const name, const cJSO… in cJSON_AddBoolToObject()
1627 cJSON *bool_item = cJSON_CreateBool(boolean); in cJSON_AddBoolToObject()
1634 CJSON_PUBLIC(cJSON *) cJSON_AddNumberToObject(cJSON *const object, const char *const name, const do… in cJSON_AddNumberToObject()
1636 cJSON *number_item = cJSON_CreateNumber(number); in cJSON_AddNumberToObject()
1643 CJSON_PUBLIC(cJSON *) cJSON_AddStringToObject(cJSON *const object, const char *const name, const ch… in cJSON_AddStringToObject()
1645 cJSON *string_item = cJSON_CreateString(string); in cJSON_AddStringToObject()
1652 CJSON_PUBLIC(cJSON *) cJSON_AddRawToObject(cJSON *const object, const char *const name, const char … in cJSON_AddRawToObject()
1654 cJSON *raw_item = cJSON_CreateRaw(raw); in cJSON_AddRawToObject()
1661 CJSON_PUBLIC(cJSON *) cJSON_AddObjectToObject(cJSON *const object, const char *const name) in cJSON_AddObjectToObject()
1663 cJSON *object_item = cJSON_CreateObject(); in cJSON_AddObjectToObject()
1670 CJSON_PUBLIC(cJSON *) cJSON_AddArrayToObject(cJSON *const object, const char *const name) in cJSON_AddArrayToObject()
1672 cJSON *array = cJSON_CreateArray(); in cJSON_AddArrayToObject()
1679 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON *const item) in cJSON_DetachItemViaPointer()
1707 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which) in cJSON_DetachItemFromArray()
1714 CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which) in cJSON_DeleteItemFromArray()
1719 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string) in cJSON_DetachItemFromObject()
1721 cJSON *to_detach = cJSON_GetObjectItem(object, string); in cJSON_DetachItemFromObject()
1726 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DetachItemFromObjectCaseSensitive()
1728 cJSON *to_detach = cJSON_GetObjectItemCaseSensitive(object, string); in cJSON_DetachItemFromObjectCaseSensitive()
1733 CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string) in cJSON_DeleteItemFromObject()
1738 CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DeleteItemFromObjectCaseSensitive()
1744 CJSON_PUBLIC(cJSON_bool) cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem) in cJSON_InsertItemInArray()
1746 cJSON *after_inserted = NULL; in cJSON_InsertItemInArray()
1764 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON *const parent, cJSON *const item, cJSON in cJSON_ReplaceItemViaPointer()
1792 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem) in cJSON_ReplaceItemInArray()
1799 static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJS… in replace_item_in_object()
1813 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newite… in cJSON_ReplaceItemInObject()
1818 …BLIC(cJSON_bool) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *… in cJSON_ReplaceItemInObjectCaseSensitive()
1824 CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void) in cJSON_CreateNull()
1826 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNull()
1832 CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void) in cJSON_CreateTrue()
1834 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateTrue()
1840 CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void) in cJSON_CreateFalse()
1842 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateFalse()
1848 CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean) in cJSON_CreateBool()
1850 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateBool()
1856 CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num) in cJSON_CreateNumber()
1858 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNumber()
1876 CJSON_PUBLIC(cJSON *) cJSON_CreateString(const char *string) in cJSON_CreateString()
1878 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateString()
1891 CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string) in cJSON_CreateStringReference()
1893 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateStringReference()
1902 CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) in cJSON_CreateObjectReference()
1904 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateObjectReference()
1907 item->child = (cJSON *)cast_away_const(child); in cJSON_CreateObjectReference()
1913 CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) in cJSON_CreateArrayReference()
1915 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateArrayReference()
1918 item->child = (cJSON *)cast_away_const(child); in cJSON_CreateArrayReference()
1924 CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) in cJSON_CreateRaw()
1926 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateRaw()
1939 CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void) in cJSON_CreateArray()
1941 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateArray()
1947 CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void) in cJSON_CreateObject()
1949 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateObject()
1956 CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count) in cJSON_CreateIntArray()
1959 cJSON *n = NULL; in cJSON_CreateIntArray()
1960 cJSON *p = NULL; in cJSON_CreateIntArray()
1961 cJSON *a = NULL; in cJSON_CreateIntArray()
1986 CJSON_PUBLIC(cJSON *) cJSON_CreateFloatArray(const float *numbers, int count) in cJSON_CreateFloatArray()
1989 cJSON *n = NULL; in cJSON_CreateFloatArray()
1990 cJSON *p = NULL; in cJSON_CreateFloatArray()
1991 cJSON *a = NULL; in cJSON_CreateFloatArray()
2016 CJSON_PUBLIC(cJSON *) cJSON_CreateDoubleArray(const double *numbers, int count) in cJSON_CreateDoubleArray()
2019 cJSON *n = NULL; in cJSON_CreateDoubleArray()
2020 cJSON *p = NULL; in cJSON_CreateDoubleArray()
2021 cJSON *a = NULL; in cJSON_CreateDoubleArray()
2046 CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char *const *strings, int count) in cJSON_CreateStringArray()
2049 cJSON *n = NULL; in cJSON_CreateStringArray()
2050 cJSON *p = NULL; in cJSON_CreateStringArray()
2051 cJSON *a = NULL; in cJSON_CreateStringArray()
2077 CJSON_PUBLIC(cJSON *) cJSON_Duplicate(const cJSON *item, cJSON_bool recurse) in cJSON_Duplicate()
2079 cJSON *newitem = NULL; in cJSON_Duplicate()
2080 cJSON *child = NULL; in cJSON_Duplicate()
2081 cJSON *next = NULL; in cJSON_Duplicate()
2082 cJSON *newchild = NULL; in cJSON_Duplicate()
2216 CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON *const item) in cJSON_IsInvalid()
2223 CJSON_PUBLIC(cJSON_bool) cJSON_IsFalse(const cJSON *const item) in cJSON_IsFalse()
2230 CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON *const item) in cJSON_IsTrue()
2237 CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON *const item) in cJSON_IsBool()
2243 CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON *const item) in cJSON_IsNull()
2250 CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON *const item) in cJSON_IsNumber()
2257 CJSON_PUBLIC(cJSON_bool) cJSON_IsString(const cJSON *const item) in cJSON_IsString()
2264 CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON *const item) in cJSON_IsArray()
2271 CJSON_PUBLIC(cJSON_bool) cJSON_IsObject(const cJSON *const item) in cJSON_IsObject()
2278 CJSON_PUBLIC(cJSON_bool) cJSON_IsRaw(const cJSON *const item) in cJSON_IsRaw()
2285 CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON *const a, const cJSON *const b, const cJSON_bool… in cJSON_Compare()
2327 cJSON *a_element = a->child; in cJSON_Compare()
2328 cJSON *b_element = b->child; in cJSON_Compare()
2344 cJSON *a_element = NULL; in cJSON_Compare()
2345 cJSON *b_element = NULL; in cJSON_Compare()