Skip to main content

coerce_json_value_to_type

Function coerce_json_value_to_type 

Source
pub(crate) fn coerce_json_value_to_type(
    value: Value,
    to_type: &ConcreteDataType,
) -> Value
Expand description

Coerces a JSON value using the same semantics as JSON2 query projection. Values that cannot be converted become null.