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#.
{
"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"
}
}
}
If it was an array of methods, I could have easily serialized it using an array. But since that itself is a key value pair, I'm stuck.
I'm making an WebRequest to a particular api and getting the result as a json.
The code used to serialize the object is from https://msdn.microsoft.com/en-us/library/hh674188.aspx