官术网_书友最值得收藏!

Working with JSON 

JSON, or JavaScript Object Notation, is a popular format these days for exchanging data among various endpoints. The most common usage of JSON is on mobile and web services. JSON is also used to store data for NoSQL databases, such as the Azure Cosmos DB. While it might seem that, with NoSQL and JSON, we work with unstructured data, only it's actually not the case. The data has a structure, only it's schema agnostic and the storage schema is defined by JSON itself, based on the content.

SQL Server has supported working with JSON since SQL Server 2016. Unlike XML, however, JSON is not the native data type in SQL Server. You can, however, use many SQL Server functions and operators to work with JSON text and perform the following:

  • Parse JSON text, and read or modify values
  • Transform arrays of JSON objects into a table format
  • Run any Transact-SQL query on the converted JSON objects
  • Format the results of Transact-SQL queries in JSON format
主站蜘蛛池模板: 山丹县| 通海县| 丘北县| 岗巴县| 平阳县| 桓仁| 金川县| 高青县| 安乡县| 清河县| 阳朔县| 白城市| 青浦区| 尼玛县| 黄陵县| 凯里市| 安岳县| 金阳县| 吉林市| 栾川县| 铁岭市| 丰县| 平邑县| 宝清县| 临海市| 宾川县| 东明县| 平武县| 九龙坡区| 奉贤区| 山西省| 洛阳市| 沾化县| 兴山县| 莆田市| 昌平区| 盘山县| 衢州市| 武宁县| 平原县| 蒲城县|