Answers for "asp.net json deserialize object as dictionary"

C#
22

deserialize json to object c#

dynamic json = Newtonsoft.Json.JsonConvert.DeserializeObject(jsonstring);
Posted by: Guest on May-02-2020
0

deserialize object to dictionary c#

string json = @"{""key1"":""value1"",""key2"":""value2""}";

var values = JsonConvert.DeserializeObject<Dictionary<string, string>>(json);
Posted by: Guest on December-08-2020

C# Answers by Framework

Browse Popular Code Answers by Language