I have string json as
"[{\"Key\":\"a\",\"Value\":\"1\"},{\"Key\":\"b\",\"Value\":\"2\"}}]"
I want parse to object
class abc{
public string a{get; set;}
public string b{get; set;}
}
Please, help me
you have to Newtonsoft Library and use
var dict=  JsonConvert.DeserializeObject<Dictionary<string,int>>("[{\"Key\":\"a\",\"Value\":\"1\"},{\"Key\":\"b\",\"Value\":\"2\"}}]"); 
Json.NET is a Popular high-performance JSON framework for .NET
Install this nuget package then it's as simple as:
var json = "[{\"Key\":\"a\",\"Value\":\"1\"},{\"Key\":\"b\",\"Value\":\"2\"}}]";
var items = JsonConvert.DeserializeObject<List<abc>>(json);
{a: Value} type syntax? If I run the code I get null for a and b...
{Propety: Value}it is{Key: "propertyname", Value: "Value"}which is a harder question.