title: json and knockout
body: <p>i have a table that is "supposed" to be binded with the result of a json but it is not working, what could be the errors?</p>
  
  <pre><code>&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;
              Id
          &lt;/th&gt;
          &lt;th&gt;
              Number
          &lt;/th&gt;
          &lt;th&gt;
              Name
          &lt;/th&gt;
          &lt;th&gt;
              Password
          &lt;/th&gt;
          &lt;th&gt;
              Role
          &lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody data-bind="foreach: model.Employees"&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span data-bind="text: EmployeeId"&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;span data-bind="text: EmployeeNumber"&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;span data-bind="text: EmployeeName"&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;span data-bind="text: EmployeePassword"&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;span data-bind="text: EmployeeRole"&gt;&lt;/span&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p></p>
  
  <p>my knockout script for that is this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function () {
      var viewModel = {};
      var data = $.getJSON("Employees.json", function (data) {
          viewModel= ko.mapping.fromJSON(data);
          ko.applyBindings(viewModel);
      }
      );
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>here is my sample returned json data:</p>
  
  <pre><code> {"Employees":[{"EmployeeId":1,"EmployeeName":X","EmployeeNumber":"1","EmployeePassword":"x","EmployeeRole":"User"},{"EmployeeId":10,"EmployeeName":"S","EmployeeNumber":"21","EmployeePassword":"s","EmployeeRole":"Admin"}]}
  </code></pre>