'How to parse the JSON arrays with OPENJSON
I have JSON data type in one of the columns in table as:
{
"phones":["+16024000022"]
}
I tried to use next in order to parse this column to be readable:
SELECT phones, m.phone_numbers
FROM [AuthX].dbo.migration m
CROSS APPLY OPENJSON( m.phone_numbers)
WITH (
phones NVARCHAR(50) '$'
)
But I am getting null values in new column phones.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
