I have a json file like:
[
{
"Id": "Id1",
"Value": "Value1"
},
{
"Id": "Id2",
"Value": "Value2"
},
{
"Id": "Id3",
"Value": "Value3"
}
]
I need to move it to a simple Dictionary(string, string) and the id should be a key and value - value.
I can trim it and use JsonDictionary = JsonConvert.DeserializeObject<Dictionary<string, string>>(json); but I think there should be more simple way.