risingwave_connector::parser::common

Function json_object_get_case_insensitive

source
pub(crate) fn json_object_get_case_insensitive<'b>(
    v: &'b BorrowedValue<'b>,
    key: &str,
) -> Option<&'b BorrowedValue<'b>>
Expand description

Get a value from a json object by key, case insensitive.

Returns None if the given json value is not an object, or the key is not found.