yyjson_obj_get

Function yyjson_obj_get 

Source
pub unsafe extern "C" fn yyjson_obj_get(
    obj: *mut yyjson_val,
    key: *const c_char,
) -> *mut yyjson_val
Expand description

Returns the value to which the specified key is mapped. Returns NULL if this object contains no mapping for the key. Returns NULL if obj/key is NULL, or type is not object.

The key should be a null-terminated UTF-8 string.

@warning This function takes a linear search time.