Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

asp.net core 3.1: cast jObject to dictionary

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

var values = JsonConvert.DeserializeObject<Dictionary<string, string>>(json);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #core #cast #jObject
ADD COMMENT
Topic
Name
8+7 =