I have the following rows in the table src where one of the attributes is an array of JSONs.
Attribute:
[{"key": "Tag", "value": "myTagValue"}, {"key": "Brand", "value": "myBrandValue"}]
[{"key": "Tag", "value": "myTagValue"}, {"key": "Brand", "value": "myBrandOtherValue"}, {"key": "Test", "value": "123"}]
How does one select the Brand?
Expected output:
Brand
-----
myBrandValue
myBrandOtherValue
(2 rows affected)
I was thinking of using json_to_recordset(json) function, but the attribute can have N different values (jsons).
json[]or is this a JSON array?