How can I deserialize the following JSON object and get a collection of Dictionary where the key(string) should be the method name and the object the details in C#.
dynamic results = JsonConvert.DeserializeObject(JsonString());
Dictionary dictionary = new Dictionary();
foreach (var o in results.methods)
{
dictionary[o.Name] = o.Value;
}
private static string JsonString()
{
return "{\"methods\": {\"password.2\": {\"title\": \"Password CustomerID\",\"type\": \"password\"},\"ubikey.sms.1\": {\"title\": \"SMS\",\"type\": \"stepup\",\"password\": \"password.2\",\"stepUp\": \"sms\"},\"tupas.test.1\": {\"title\": \"TUPAS Emulator\",\"type\": \"proxy\"}}}";
}