I have a JSON string which looks like:
[{"Id":"1","Name":"Apple "},{"Id":"2","Name":"Orange "},{"Id":"3","Name":"Banana "}....]
How can I convert the JSON string to this format: {"1":"Apple"},{"2":"Orange"},{"3","Banana"}...
so I can create dictionary like:
Dictionary<string, string> d = new Dictionary<string, string>()
{
{"1":"Apple"},{"2":"Orange"},{"3","Banana"}
};