I have a column that has the following JSON in it (this is a small sample, there are a lot of other rows).
[
{ "Key": "priorityProduct", "Value": "0" },
{ "Key": "somethingElse", "Value": "another value" },
{ "Key": "remove", "Value": "1" },
{ "Key": "anotherHere", "Value": "27" }
]
I want to SELECT the value of the remove only in a SQL query and ignore the other values. So I could SELECT some SQL columns to say name, address and use something like this to fill the remove?
SELECT
[name], address,
JSON_VALUE(MyColumn, '$[Key:"remove"].Value') AS Remove
Does such a query syntax exist?