fn jsonb_agg( state: &mut JsonbArrayState, input: Option<impl ToJsonb>, ctx: &Context, ) -> Result<()>
Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per to_jsonb.
to_jsonb