I am trying to write stored procedure in Postgres. But I have data as JSON in Postgres like the below.
{
"identifiers":
[
{
"identifierType": "VIN",
"value": "L608"
},
{
"identifierType": "VIN",
"value": "L604"
}
]
Now I need to convert the above JSON into separate columns and rows using Postgres:
identifierType value
-----------------------------
VIN L608
VIN L604
Please help! Thanks.