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

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
主站蜘蛛池模板: 麟游县| 从江县| 崇仁县| 灵宝市| 鸡泽县| 郁南县| 达日县| 平阳县| 蓬溪县| 兴海县| 郑州市| 杨浦区| 温宿县| 盖州市| 长沙县| 延寿县| 连平县| 民和| 乐平市| 陆良县| 报价| 岗巴县| 馆陶县| 五河县| 鱼台县| 清镇市| 哈密市| 万荣县| 富裕县| 安国市| 留坝县| 尼勒克县| 商都县| 满洲里市| 宁强县| 丰县| 漳平市| 镶黄旗| 色达县| 乐陵市| 定边县|