title: How can you pass the model to the view?
body: <p>I've just started looking at <a href="http://knockoutjs.com/" rel="nofollow">knockoutjs</a> after watching the <a href="http://channel9.msdn.com/Events/MIX/MIX11/FRM08" rel="nofollow">MIX 11</a> talk and it looks very promising. </p>
  
  <p>I can understand how to pass your model back to your controller as json and update/save the model, but how can I pass my model to my view and make it observable?</p>
  
  <p>For example if I have the following class:</p>
  
  <pre><code>public class Person {
      public string FirstName { get; set; }
      public string LastName { get; set; }
  }
  </code></pre>
  
  <p>I can pass it from my controller as json using a JsonResult so I send something like to my view:</p>
  
  <pre><code>{ 
      firstName : "Bob",
      lastName : "Jones"
  };
  </code></pre>
  
  <p>Now, how do I make the properties observable and make this a viewModel within my code?</p>