fn jsonb_object_agg(
state: &mut JsonbObjectState,
key: Option<&str>,
value: Option<impl ToJsonb>,
ctx: &Context,
) -> Result<()>
Expand description
Collects all the key/value pairs into a JSON object.
// Key arguments are coerced to text;
value arguments are converted as per to_jsonb
.
Values can be null, but keys cannot.