title: Print JSON to screen as a block of text in unity
body: <p>I am using unity3d and I have a JSON object. I am able to access each member using ob.name and so on but I am looking to get this deserialized block to be printed on my screen during run time.Similar to a search result , so I get the JSON as a result of search and I want to display it on my screen.I get errors that I cannot print the object because I used (ob.name)toString(); 
  I am not sure how to display this during run time on the screen.</p>
  
  <pre><code>ObjR rs = JsonUtility.FromJson&lt;ObjR&gt;(jsonString);
  //so now I want to print to screen each element of rs.How do I do that during runtime.
  </code></pre>
  
  <p>EDIT : I am able to see on Debug.Log , I just need to dynamically print them on screen.Please note , the size or number of results is on runtime and will vary.Any help is appreciated.So I found this and now I get it on the screen.  <a href="http://wiki.unity3d.com/index.php/DebugConsole.Can" rel="nofollow noreferrer">http://wiki.unity3d.com/index.php/DebugConsole.Can</a> anybody help on how I can make each respond to click events ?</p>
  
  <pre><code>var client = new RestClient(Url);
  var req = new RestRequest(UrlEndpoint, Method.GET)
              .AddParameter("apikey", apiKey)
              .AddParameter("q", query)
  
      // Perform the search and obtain results
  var resp = client.Execute(req);
  var search = JsonConvert.DeserializeObject&lt;dynamic&gt;(resp.Content);
  
  // Print the number of results
  Console.WriteLine("Number of hits: " + search["hits"]);
  Debug.Log(search["hits"] + " ");
  foreach (var result in search["results"])
  {
      var part = result["item"];
      // want to print to screen each item and mpn
      //Debug.Log(part["brand"]["name"] + " " + part["mpn"]);
      //what i tried/ string hits = search["hits"].ToString();//error
  
      //expected type object and found string
      GUILabel(float,float,needed string here);
  }
  </code></pre>