How to turn json array into postgres array?
-
02-11-2019 - |
문제
I have a column data
that holds a json
document roughly like this:
{
"name": "foo",
"tags": ["foo", "bar"]
}
I would like to turn the nested tags
array into a concatenated string (foo, bar
). That would be easily possible with the array_to_string()
function in theory. However, this function does not act on json
arrays. So I wonder how to turn this json
array into a Postgres array
?
올바른 솔루션이 없습니다
제휴하지 않습니다 dba.stackexchange