I am trying to parse a json file which is been got from a file stream. Following is my json data
{
"appname":"sine",
"taborder": [
"some",
"thing",
"is",
"went",
"wrong" ]
}
I am storing the data in a String and trying to deserialize the data. I am trying to show the keys in alert box in the following way
string jsonString = contents;//"{'Name':'Bill', 'Ag:53}";
you deserializedUser = ReadToObject(jsonString);
var str = deserializedUser.mainDict.Keys.ToArray();
MessageBox.Show(str.ToString());
But i am getting the key value as “null”, How to get the key values in proper , pls help me…..
I did this hope this helps
And I made a class