Just started playing with JSON_VALUE
in SQL Server. I am able to pull values from name/value pairs of JSON but I happen to have an object that looks like this:
["[email protected]"]
When I attempt what works for name/value pairs:
SELECT TOP 1
jsonemail,
JSON_VALUE(jsonemail, '$') as pleaseWorky
FROM MyTable
I get back the full input, not [email protected]
. Am I out of luck? I don't control the upstream source of the data. I think its a sting collection being converted into a json payload. If it was name: [email protected] I would be able to get it with $.name
.
Thanks in advance.