Lines Matching refs:parent
434 cJSON *parent = NULL;
437 /* copy path and split it in parent and child */
452 parent = get_item_from_pointer(object, (char*)parent_pointer, case_sensitive);
455 if (cJSON_IsArray(parent))
462 detached_item = detach_item_from_array(parent, index);
464 else if (cJSON_IsObject(parent))
466 detached_item = cJSON_DetachItemFromObject(parent, (char*)child_pointer);
828 cJSON *parent = NULL;
978 /* split pointer in parent and child */
988 parent = get_item_from_pointer(object, (char*)parent_pointer, case_sensitive);
992 if ((parent == NULL) || (child_pointer == NULL))
998 else if (cJSON_IsArray(parent))
1002 cJSON_AddItemToArray(parent, value);
1014 if (!insert_item_in_array(parent, index, value))
1022 else if (cJSON_IsObject(parent))
1026 cJSON_DeleteItemFromObjectCaseSensitive(parent, (char*)child_pointer);
1030 cJSON_DeleteItemFromObject(parent, (char*)child_pointer);
1032 cJSON_AddItemToObject(parent, (char*)child_pointer, value);
1035 else /* parent is not an object */