JSON data type
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 FlowDECLARE @document json = N'{"status":"ready"}'; SELECT JSON_VALUE(@document, '$.status') AS status;
Open Microsoft Learn for full syntax, permissions, and details for your version.