The name of an object is lost when calling cJSON_ReplaceItem...
What I would like to do is replace a child object with another object: new_child = cJSON_CreateObject(); cJSON_ReplaceItemInObject(parent, "child", new_child); But the problem with this is that the name of the object gets lost after the ...