JSON functions (Transact-SQL)
Applies to: SQL Server 2016 (13.x) and later Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics
Use the functions described on the pages in this section to validate or change JSON text or to extract simple or complex values.
Function | Description |
---|---|
ISJSON | Tests whether a string contains valid JSON. |
JSON_VALUE | Extracts a scalar value from a JSON string. |
JSON_QUERY | Extracts an object or an array from a JSON string. |
JSON_MODIFY | Updates the value of a property in a JSON string and returns the updated JSON string. |
JSON_PATH_EXISTS | Tests whether a specified SQL/JSON path exists in the input JSON string. |
For more info about the built-in support for JSON in SQL Server, see JSON data in SQL Server.
Related content
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla