Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Error with MiniJSON

$
0
0
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?

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>