I am using Newtonsoft and Newtonsoft.Json. I have the below json:
string strJson_StorageInfo = "[{10:\"test\"}, {20:\"test1\"}]";
List<Dictionary<int, string>> jobj = (List<Dictionary<int, string>>) JsonConvert.DeserializeObject(strJson_StorageInfo, typeof(List<Dictionary<int, string>>));
foreach (Dictionary<int, string> dicStorageInfo in jobj) {
foreach (KeyValuePair<int, string> StorageItem in dicStorageInfo) {
Response.Write("key : " + StorageItem.Key + " , value : " + StorageItem.Value + "</br>");
}
}
I need to Deserialize this. Can anyone suggest me good method. Thanks in advance