title: beginner: Json Result serialization in a asp.net mvc page without jquery/javascript/ajax
body: <p>i am a programming student, working with a asp.net mvc 4 web app, i am testing a simple web app that uses the <a href="http://openweathermap.org/api" rel="nofollow noreferrer">http://openweathermap.org/api</a> so when i click a link, it executes the Action Result on the home controller, the code to get the data from the api is in this action result and it fetches the api json data and stores it in a viewbag.message that is then passed back to the view. I have that much working in so far as i can get the json result and see it on the view. I am not sure how to proceed &amp; the pages i have looked up seem to be centered around ajax jquery</p>
  
  <p>My question is about the serializing/displaying the json result without adding any plugins or anything just yet, i would like to format / serialise it so it looks better maybe fit it into a table or something, but without getting into ajax &amp; jquery just yet as i haven't learned that part yet.</p>
  
  <p>I have removed the api key from the code.</p>
  
  <pre><code>public ActionResult getWeather()
  {
      var uri = "http://api.openweathermap.org/data/2.5/forecast?id=7778677&amp;APPID=123456789";
  
      WebClient client = new WebClient();
  
      client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
  
      var resultContent = client.DownloadString(uri);
  
      ViewBag.Message = resultContent;
  
      return View();
  
  }
  </code></pre>
  
  <p>And here is the result view:</p>
  
  <p>screenshot of result view showing the json data from the api</p>
  
  <p><img src="https://i.stack.imgur.com/UihYE.jpg" alt="screenshot of result view showing the json data from the api"></p>
  
  <p>I hope i am explaining myself correctly, 
  Thank You.
  M.</p>