Home
last modified time | relevance | path

Searched refs:cJSON_AddItemToObject (Results 1 – 11 of 11) sorted by relevance

/third_party/cJSON/
Dtest.c169 cJSON_AddItemToObject(root, "name", cJSON_CreateString("Jack (\"Bee\") Nimble")); in create_objects()
170 cJSON_AddItemToObject(root, "format", fmt = cJSON_CreateObject()); in create_objects()
210 cJSON_AddItemToObject(root, "Image", img = cJSON_CreateObject()); in create_objects()
214 cJSON_AddItemToObject(img, "Thumbnail", thm = cJSON_CreateObject()); in create_objects()
218 cJSON_AddItemToObject(img, "IDs", cJSON_CreateIntArray(ids, 4)); in create_objects()
DcJSON_Utils.c1015 cJSON_AddItemToObject(parent, (char*)child_pointer, value); in apply_patch()
1110 cJSON_AddItemToObject(patch, "op", cJSON_CreateString((const char*)operation)); in compose_patch()
1114 cJSON_AddItemToObject(patch, "path", cJSON_CreateString((const char*)path)); in compose_patch()
1125 cJSON_AddItemToObject(patch, "path", cJSON_CreateString((const char*)full_path)); in compose_patch()
1131 cJSON_AddItemToObject(patch, "value", cJSON_Duplicate(value, 1)); in compose_patch()
1374 cJSON_AddItemToObject(target, patch_child->string, replacement); in merge_patch()
1438 cJSON_AddItemToObject(patch, from_child->string, cJSON_CreateNull()); in generate_merge_patch()
1445 cJSON_AddItemToObject(patch, to_child->string, cJSON_Duplicate(to_child, 1)); in generate_merge_patch()
1455cJSON_AddItemToObject(patch, to_child->string, cJSONUtils_GenerateMergePatch(from_child, to_child)… in generate_merge_patch()
DREADME.md265 To add items to an object, use `cJSON_AddItemToObject`. Use `cJSON_AddItemToObjectCS` to add an ite…
383 cJSON_AddItemToObject(monitor, "name", name);
390 cJSON_AddItemToObject(monitor, "resolutions", resolutions);
406 cJSON_AddItemToObject(resolution, "width", width);
413 cJSON_AddItemToObject(resolution, "height", height);
DcJSON.h223 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item);
DCHANGELOG.md119 * Fix potential use after free if the `string` parameter to `cJSON_AddItemToObject` is an alias of …
397 * Combined `cJSON_AddItemToObject` and `cJSON_AddItemToObjectCS` to one function ([cf862d](https://…
DcJSON.c2053 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObject() function
/third_party/cJSON/tests/
Dreadme_examples.c73 cJSON_AddItemToObject(monitor, "name", name); in create_monitor()
80 cJSON_AddItemToObject(monitor, "resolutions", resolutions); in create_monitor()
96 cJSON_AddItemToObject(resolution, "width", width); in create_monitor()
103 cJSON_AddItemToObject(resolution, "height", height); in create_monitor()
Dold_utils_tests.c105 cJSON_AddItemToObject(object, "numbers", nums); in misc_tests()
121 cJSON_AddItemToObject(object1, "m~n", object2); in misc_tests()
128 cJSON_AddItemToObject(object3, "m/n", object4); in misc_tests()
152 cJSON_AddItemToObject(sortme, buf, cJSON_CreateNumber(1)); in sort_tests()
Dmisc_tests.c341 flag = cJSON_AddItemToObject(root, "child", child); in cjson_replace_item_in_object_should_preserve_name()
404 cJSON_AddItemToObject(item, "item", NULL); in cjson_functions_should_not_crash_with_null_pointers()
405 cJSON_AddItemToObject(item, NULL, item); in cjson_functions_should_not_crash_with_null_pointers()
406 cJSON_AddItemToObject(NULL, "item", item); in cjson_functions_should_not_crash_with_null_pointers()
578 flag = cJSON_AddItemToObject(object, "key", object); in cjson_add_item_to_object_or_array_should_not_add_itself()
602 cJSON_AddItemToObject(object, number->string, number); in cjson_add_item_to_object_should_not_use_after_free_when_string_is_aliased()
653 cJSON_AddItemToObject(root, "one", item1); in cjson_set_valuestring_to_object_should_not_leak_memory()
654 cJSON_AddItemToObject(root, "two", item2); in cjson_set_valuestring_to_object_should_not_leak_memory()
/third_party/vulkan-loader/loader/
DcJSON.h116 void cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item);
DcJSON.c960 void cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) { in cJSON_AddItemToObject() function
975 cJSON_AddItemToObject(object, string, create_reference(item)); in cJSON_AddItemReferenceToObject()