I am trying to integrate
http://forum.unity3d.com/threads/35484-MiniJSON-script-for-parsing-JSON-data
But i am getting error
NullReferenceException:
Object reference not set to an instance of an object
Code i had is
string response = www.text;
Debug.Log(response);
IDictionary search = (IDictionary) Json.Deserialize(response);
IList tweets = (IList) search["results"];
foreach (IDictionary tweet in tweets) {
Debug.Log(string.Format("tweet: {0} : {1}", tweet["from_user"], tweet["text"]));
}
IDictionary search = (IDictionary) Json.Deserialize(response);
this line shows me error
How can i escape from this?
↧