skip to Main Content

JSON Object Query SQL Server

I have a JSON string which is the following: [ { "id": 103001058774, "name": "status", "label": "Status", "description": "Ticket status", "choices": { "2": [ "Open", "Open" ], "3": [ "Pending", "Pending" ], "4": [ "Resolved", "Resolved" ], "5": [ "Closed",…

VIEW QUESTION

Insert JSON Data into already existing SQL Table

I am doing an API call which returns the following JSON as a string: [{ "id": 103000180455, "name": "Personal", "created_at": "2023-06-12T07:12:52Z", "updated_at": "2023-06-12T07:12:52Z", "personal": true, "responses_count": 1 }, { "id": 103000180454, "name": "General", "created_at": "2023-06-12T07:12:52Z", "updated_at": "2023-06-12T07:12:52Z", "personal": false, "responses_count":…

VIEW QUESTION

SQL Server: Transform arrays of JSON objects into table format

Following is the given JSON data: DECLARE @Jdata NVARCHAR(MAX) = '{ "EmployeeDetails": { "BusinessEntityID": 3, "NationalIDNumber": 509647174, "JobTitle": "Engineering Manager", "BirthDate": "1974-11-12", "MaritalStatus": "M", "Gender": "M", "StoreDetail": { "Store": [ { "AnnualSales": 800000, "AnnualRevenue": 80000, "BankName": "Guardian Bank", "BusinessType": "BM",…

VIEW QUESTION
Back To Top
Search