I have this JSON value stored in SQL text column:
[
{
"Id": 1807080,
"InvoiceId": 1605555,
"UnitRate": 6924.00,
"Total": 6924.00
},
{
"Id": 1807081,
"InvoiceId": 1605555,
"UnitRate": 16924.00,
"Total": 16924.00
},
{
"Id": 1807082,
"InvoiceId": 1605555
}
]
I'm trying to select all the id values, trying something like this:
select JSON_VALUE(Items, '$.Id') as IdValue
from InvoiceTable
I'm querying JSON values for first time and I guess I'm not doing it right, the output I'm getting is null.