yyjson_mut_arr_add_obj

Function yyjson_mut_arr_add_obj 

Source
pub unsafe extern "C" fn yyjson_mut_arr_add_obj(
    doc: *mut yyjson_mut_doc,
    arr: *mut yyjson_mut_val,
) -> *mut yyjson_mut_val
Expand description

Creates and adds a new object at the end of the array. @param doc The doc is only used for memory allocation. @param arr The array to which the value is to be inserted. Returns false if it is NULL or not an array. @return The new object, or NULL on error.