title: How to use json data in MVC view .cshtml
body: <p>I hope someone can help me:
  My challenge is, that I have a web service returning a json.</p>
  
  <p>The format is </p>
  
  <pre><code>{"stations":[{"name":"aname","free":false},{"name":"anothername","free":true}]}
  </code></pre>
  
  <p>so I have one object which is an array that hold <code>n</code> objects with <code>n</code> attributes....
  Now for each object in that array of the stations object I would like to render the attributes, like </p>
  
  <pre><code>&lt;p&gt;stations[0].name&lt;/p&gt;
  </code></pre>
  
  <p>I need to use this in mvc.
  So I created a model </p>
  
  <pre><code>public station(){}
  public string name {get; set;}
  public boolean free {get; set;}
  </code></pre>
  
  <p>in my contorller I use a WebClient and now I need to handle the response.
  I was thinking of IEnumerable but I don't know how to put this in the view?!</p>
  
  <p>my goal is to understand how i can do something like </p>
  
  <pre><code>public Actionresult Stations(){
  var stations = JObject.Load(reponse);
  return View(Stations);
  }
  </code></pre>
  
  <p>but I have no idea how to the handle each object of the array and get their values in the <code>Stations.cshtml</code> view using for each or similar....</p>
  
  <p>Any idea?</p>