t-sql-json-and-openjson

Installation
SKILL.md

Query JSON on Azure SQL Database with the native type

Two generations of JSON support exist here and far more has been written about the first: a document in nvarchar(max) read with functions. The second is a real json type with its own storage, validation and index. Both work, and the differences are not only speed. Open references/json-type-errors-and-timings.md when an error number you hit is not listed here, or before you change one that is.

Scope

  • Where a document column belongs in a table design is design-azure-sql-schema.
  • General T-SQL dialect is t-sql-correctness.

What the json type actually changes

Installs
56
GitHub Stars
66
First Seen
Sep 28, 2026