I have JSON definitions in a SQL table, from there I am trying to parse it into a SQL Server view or a table (anything would be helpful).
LookupJSON table has a single column called definition_JSON and an example of one value looks like this:
{"__type":"userTask","name":"Grade Report","id":4,"directApprove":false,"emailNotification":{"body":"<p>Hi, your Form was successfully submitted! <\/p>","emailType":2,"subject":"Form Submitted"},"lock":false,"submitBool":true, "submitBtn":"Submit"}
I just need to get the name, userTask and id as results.
When we tried the following query it didn't like that nested query, it is expecting JSON.
Select *
From parseJSON (select top 1 * from LookupJSON)
We are using SQL Server 2012.