title: Showing .net object from al class on a .cshtml page
body: <p>I'm new to .NET and I'm trying to show my json on my .cshtml page and I don't know how to get it there. I also want to test what this class gives back since I don't know if it will work because I am getting the json from my localhost java ee backend. I am using an MVC template.</p>
  
  <pre><code>class Evaluatie
  {
      static void Main(string[] args)
      {
          var client = new WebClient();
          var response = client.DownloadString(new Uri("http://localhost:8080/projecten/api/leerlingen"));
  
          var j = JsonConvert.DeserializeObject&lt;Leerling&gt;(response);
      }
  
      public class Leerling
      {
          public string inschrijvingsNummer { get; set; }
          public string naam { get; set; }
          public string email { get; set; }
          public string evaluatieNummer { get; set; }
      }
  }
  </code></pre>
  
  <p>the .cshtml page looks like this</p>
  
  <pre><code>@{
      ViewBag.Title = "Evaluaties";
  }
  &lt;h2&gt;@ViewBag.Title.&lt;/h2&gt;
  </code></pre>
  
  <p>this is my json:</p>
  
  <pre><code>[{"inschrijvingsNummer":"0001","naam":"Joske Vermeulen","email":"joske.vermeulen@hotmail.be","evaluatieNummer":"270"},
  {"inschrijvingsNummer":"0002","naam":"Kamiel Spiesses","email":"Kamiel.spiesses@gmail.com","evaluatieNummer":"370"}]
  </code></pre>