I have JSON stored in a jsonb column:
[
{
"ORDER_TYPE": "foo",
"PAYMENT_TYPE": "VISA",
}
]
I can query fine but is it possible to select specific parts (PAYMENT_TYPE) of the json from the resultset?
SELECT PAYMENT_TYPE
FROM tools.orders
WHERE responsejsonb::jsonb @> '[{"ORDER_TYPE":"foo"}]';
Desired output "PAYMENT_TYPE": "VISA" or "VISA"