Dennes Torres tries out the JSON data type in Azure SQL Database:
Before this new field type, JSON data was typically stored in
varchar(max)
columns. There are many features to use with JSON values stored invarchar(max)
columns and variables, but storing JSON as regular strings is still limited.The built-in JSON type expands the possibilities. Using an actual JSON column, it becomes easier to build constraints related to JSON columns, for example.
Dennes also spends a lot of the article covering the JSON_ARRAYAGG()
and JSON_OBJECTAGG()
functions.