About 950,000 results
Open links in new tab
  1. sql server - Create nested JSON arrays using FOR JSON PATH - Stack Overflow

    Dec 14, 2017 · I need to create a JSON output from a query that uses inner join between two tables with a one to many relationship. I would like the values of the secondary table to be …

  2. How to parse nested JSON array using SQL Server

    I am currently able to parse most of a JSON file using SQL Server's OPENJSON WITH (... syntax. However, this particular file contains nested arrays which I do not know how to handle. Many …

  3. Reading JSON string with Nested array of elements - SQL with …

    Nov 1, 2015 · Today in this post I’ll talk about how to read/parse JSON string with nested array of elements, just like XML. – OPENJSON () Table valued function: parses JSON text and returns …

  4. How to Display Nested JSON Data in SQL: A Step-by-Step Guide

    Feb 13, 2025 · This blog post will walk you through the process of using SQL Server's functionalities to display JSON data in tabular form, specifically focusing on fetching nested …

  5. Format Nested JSON Output with PATH Mode - SQL Server

    Mar 13, 2025 · PATH mode lets you create wrapper objects and nest complex properties. The results are formatted as an array of JSON objects. The alternative is to use the AUTO option …

  6. SQL Server OPENJSON read nested json - Stack Overflow

    If you reference JSON object or array you need to specify AS JSON clause: select IdProject, Name, structures from openjson (@json) with ( IdProject uniqueidentifier, Name …

  7. TSQL: Mastering Nested JSON Parsing with OPENJSON Function: JSON Array

    You can use this Fiddle to follow along and practice nested JSON parsing with OPENJSON Function. Let's use an EmployeeData table that contains 5 sample records. Each record …

  8. Work with JSON data in SQL Server - SQL Server | Microsoft Learn

    3 days ago · By using SQL Server built-in functions and operators, you can do the following things with JSON text: Parse JSON text and read or modify values. Transform arrays of JSON …

  9. json_object and json_array SQL Server Functions

    Feb 3, 2023 · In this tutorial, we use the JSON_Object to create objects in JSON and the JSON_Array function to create JSON arrays. The syntax is simple, but if you have a complex …

  10. Shredding JSON Nested Arrays - Notes on SQL

    Feb 5, 2018 · Whilst reading up on SQL Server 2016 JSON functionality I have seen many examples of extracting data from a JSON array. However, I wanted to work out how to extract …

  11. Some results have been removed
Refresh