SQL Flow Field Guide

JSON data type

Catalog support for SQL Server 2025 (17.x)

data type JSON data type

What changes

Input
none
Output or change
none

Syntax at a glance

column_name JSON [ NOT NULL | NULL ] [CHECK ( constraint_expression ) ] [ DEFAULT ( default_expression ) ]

Work example

Store JSON in SQL Server 2025 using its native JSON type when the target platform supports it.

Check the deployment version and compatibility requirements, then validate the document shape at the application boundary.

Check your work The native JSON type is a SQL Server 2025 feature and older target versions need a supported text representation.

Practice SQL

Open in SQL Flow
DECLARE @document json = N'{"status":"ready"}'; SELECT JSON_VALUE(@document, '$.status') AS status;

Open Microsoft Learn for full syntax, permissions, and details for your version.