- Supports the standard
is jsontest - ⚡Does not recognize JSON scalars as valid JSON
- No type constraints:
… is json[array|object|scalar]
The isjson function returns 1 if the argument string contains valid JSON. Otherwise it returns null if the input was null or 0 for any non-null non-JSON value.
- Differs from standard SQL
is json: 1 for JSON arrays and objects only - Differs from standard SQL
is json: 1 for JSON numbers and strings only
Similar to the is json test of standard SQL isjson allows objects to contain the same key several times.
{"a": 42,
"a": 1}Related
- Product Documentation
Microsoft SQL Server: ISJSON (Transact-SQL)
- Standard SQL Features
T832, “SQL/JSON path language: item method”
.type()item method
- Non-Standard Alternatives
- Tutorials
Normative References
The isjson function is not covered by the international SQL standard ISO/IEC 9075-2:2023.

