attrs_to_jsonb

Function attrs_to_jsonb 

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

Serializes a flat (key → value) map (with optional extra entries layered on top) to JSONB bytes. Output ordering is alphabetical, matching serialize_properties_to_jsonb.