This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
We've improved the JSON support in Fabric Datawarehouse (Fabric DW) and have added the following features in Fabric DW:
The JSON_PATH_EXIST function checks if there is a value on the given path in JSON text. The JSON_OBJECT and JSON_ARRAY functions enable you to more easily create JSON objects or arrays based on a set of scalar values without a need to concatenate and escape the values to produce a properly formatted JSON text.
In the following example you can see the new approach that you can use to create JSON objects in the queries:
| Formatting without JSON_OBJECT | Formatting with JSON_OBJECT |
| |
With the new approach, you don't need to worry about pairing curly brackets and quotes to properly format JSON objects, and you don't need to ensure that you are properly escaping the values before you concatenate them.
In addition to the new functionalities, we have enabled you to use the OPENROWSET function with CROSS/OUTER APPLY operator. This was one of the feature requests asked in Microsoft Fabric Idea site.
With these improvements, the JSON support in Azure SQL database and Fabric DW is aligned. You can easily migrate code between Azure SQL database and Fabric without the need to rewrite and modify your T-SQL logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.