My JSON object is stored in the table (single cell). Right now, I'm reading the cell and saving the value to @json NVARCHAR(MAX)
SELECT *
FROM OPENJSON ( @json )
WITH (...)
, but that obviously doesn't work in views. How can I do something like this?
SELECT *
FROM OPENJSON ( select top 1 json_object from json_raw )
WITH (...)