skip to Main Content

T-sql extract json string to multiple columns

I have one table which contains one JSON string column. How can I extract the information this into several different columns? The json column values look something like this: [{"Name":"Id1","Value":"11ea1111-cc22-3bb3-a33d-62159f192eba"}, {"Name":"Id2","Value":"b2222222-7777-00eb-0cc1-12345687bbbb"}, {"Name":"Id3","Value":"5d65d2c1-151e-41b4-af00-12345687aaaa"}, {"Name":"Id4","Value":"5bbd0da5-7698-4fa6-a893-9874654123aa"}, {"Name":"Quantity","Value":"10"}, {"Name":"Id5","Value":"d22222-8877-4558-ah32-789456123"}] I would like to extract…

VIEW QUESTION

Function to return all related data from json list using any given key

I have the following json data about experts. result={ "experts":[ { "thumbnail": "https://scholar.googleusercontent.com/citations?view_op=small_photo&user=JicYPdAAAAAJ&citpid=2", "name": "Geoffrey Hinton", "link": "https://scholar.google.com/citations?hl=en&user=JicYPdAAAAAJ", "author_id": "JicYPdAAAAAJ", "email": "Verified email at cs.toronto.edu", "affiliations": "Emeritus Prof. Comp Sci, U.Toronto & Engineering Fellow, Google", "cited_by": 638900, "interests": [ {…

VIEW QUESTION

Deserialize JSON with comma-separated values

I want to de-serialize a JSON where a node contains values which comma-separated. But the object which contains the comma returns null when deserializing. Input JSON: { "SolutionTabletSubSectionUId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "SolutionTabletSubSectionId": 1, "SolutionTabletUId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Title": "string", "SubTitle": "string", "Description": "string", "Link":…

VIEW QUESTION
Back To Top
Search