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

Deserializing Json String in Android Studio – Java

I am trying to deserialize a Json String using GSONbut after deserialization all values appear as Null. This is the Json String (I obtain this String from a server through a Rest API): {"getInformationResult":{ "BE_Active":false,"BE_Owner_ID":0,"BT_ID":0,"CLC_Sale":0,"CLC_Shared_Balance":false,"Cash":false,"Client_Active":false,"Client_Alias":null,"Client_ID":0,"Clients_Balance_By_Brand":null,"Contact_Active":false,"Contact_ID":0,"Credit":false,"Currency_ID":0,"Error_Codes":null,"Errors" :[{"Error_Code":"101","Error_Description":"Login: Invalid User or Password","Error_ID":27,"Error_Name":"Invalid…

VIEW QUESTION

fast and memory efficient way to deserialize a GUID from a byte array to a string in JavaScript

At the moment I've used this code: getGuid(): string { const guid = this.array[this.offset + 3].toString(16).padStart(2, '0') + this.array[this.offset + 2].toString(16).padStart(2, '0') + this.array[this.offset + 1].toString(16).padStart(2, '0') + this.array[this.offset + 0].toString(16).padStart(2, '0') + "-" + this.array[this.offset + 5].toString(16).padStart(2, '0') +…

VIEW QUESTION
Back To Top
Search