asp.net core 3.1: cast jObject to dictionarystring,string

55

asp.net core 3.1: cast jObject to dictionary<string,string> </string,string> -

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

var values = JsonConvert.DeserializeObject&lt;Dictionary&lt;string, string&gt;&gt;(json);

Comments

Submit
0 Comments