SQL Flow Field Guide

JSON_VALUE

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

JSON extract, test, modify or construct

What changes

Input
JSON text or values
Output or change
scalar, fragment, or constructed JSON
Return type
Applies to: SQL Server 2025 (17.x) and later versions. If you don't include RETURNING: Returns a single text value of type nvarchar(4000). The collation of the returned value matches the collation of

Syntax at a glance

JSON_VALUE ( expression , path )

Work example

Read one scalar field from a JSON document.

Use strict paths when a missing property should fail and cast the returned text to its business type.

Check your work JSON_VALUE returns nvarchar text and its default lax mode returns null for a missing path.

Practice SQL

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

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