PostgreSQL · Function
jsonb_build_object
jsonb_build_object creates a JSONB object from alternating key and value arguments. Keys become text, and values use PostgreSQL's JSON conversion rules.
Last updated
Syntax
jsonb_build_object ( VARIADIC "any" ) → jsonbIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
json_build_objectto_jsonto_jsonbjsonb_object