skip to Main Content

Asp.net – C# Deserializing Dictionary<string, Dictionary<string, List<string>>>

I try to deserialize a json response: var res = await Http.GetAsync("api/endpoint"); var resBody = await res.Content.ReadAsStringAsync(); var listOfDicts = JsonSerializer.Deserialize<List<Dictionary<string, Dictionary<string, List<string>>>>(resBody); This is the json we get from the endpoint: [ { "key":"Activities", "value":{ "Delete":[ "string1", "string2", "string3"…

VIEW QUESTION

Shopify metafield json shown as table

I am new to this site and to json and I hope for your assistance. We have a metafield that I would like to show as a table. Json.Format is currently as follows: "f3b77f84-9b4d-4740-b249-bf02c199695e": { "type": "collapsible_text", "settings": { "title":…

VIEW QUESTION

String processing in Javascript using Array

Here is the input that should be converted to JSON format as given below. '{RS0004036}:{1;2}:{0000003AB;0000003BC}_{RS0004036}:{0;3}:{0000003DE;0000003FG}_{RS0004036}:{3;3}:{0000003HI;0000003JK}' Target JSON should be like this. The code should read the above input, will create a JSON return string as follows. The returning JSON will…

VIEW QUESTION
Back To Top
Search