I have a column x with data type jsonb
and the values looks like:
[
{"key": "6cd", "type": "text1", "label": "label_text_1", "content": "description"},
{"key": "815", "type": "text2", "label": "label_text_2", "content": "desc2"}
]
How to return an array of strings which contains all the elements with a Postgres query?
Something like this:
["6cd", "text1","label_text_1","description","815","text2","label_text_2","desc2"]