Function jsonb_object_field

Source
pub fn jsonb_object_field<'a>(v: JsonbRef<'a>, p: &str) -> Option<JsonbRef<'a>>
Expand description

Extracts JSON object field with the given key.

jsonb -> text → jsonb

§Examples

query T
select '{"a": {"b":"foo"}}'::jsonb -> 'a';
----
{"b": "foo"}