Skip to main content

attrs_to_jsonb_value

Function attrs_to_jsonb_value 

Source
pub fn attrs_to_jsonb_value(
    attrs: &[KeyValue],
    extras: &[(String, Value<'static>)],
) -> Value<'static>
Expand description

Builds a flat (key → value) JsonbValue::Object (with optional extra entries layered on top). Output ordering is alphabetical (a BTreeMap underneath), matching serialize_properties_to_jsonb.