Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    OPENJSON is a table valued function, not a scalar function.
    – Sean Lange
    Commented Jul 19, 2022 at 13:23
  • 1
    SELECT cols FROM mytable CROSS APPLY OPENJSON([fieldname]);
    – squillman
    Commented Jul 19, 2022 at 13:24
  • 4
    Alternatively, use JSON_VALUE or JSON_QUERY if you want to extract a single value or object, respectively. Commented Jul 19, 2022 at 13:25