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

Transforming a JSON input subarray into a string sequential list output

Here is my input: { "alias-name": "soufriere", "member-entry": { "alias-entry-name": [ "21:00:f4:e9:d4:50:56:7e", "21:00:f4:e9:d4:50:56:7f" ] } } { "alias-name": "stromboli", "member-entry": { "alias-entry-name": [ "21:00:f4:e9:d4:50:56:8e" "21:00:f4:e9:d4:50:56:9e" ] } } I'd like to turn this into output alicreate "soufriere","21:00:f4:e9:d4:50:56:7e;21:00:f4:e9:d4:50:56:7f" alicreate "stromboli","21:00:f4:e9:d4:50:56:8e;21:00:f4:e9:d4:50:56:9e" I…

VIEW QUESTION
Back To Top
Search