title: Fetching or sending data from a form using knockout.js
body: <p>Newbie in Knockout, also a front-end designer so I need plain talk.</p>
  
  <p>I have a form that I need to send to the database and then retrieve from the database later. </p>
  
  <p>Please explain in very simple terms how to produce a working example to illustrate saving and posting a form?</p>
  
  <p>From knockout tutorial: <a href="http://knockoutjs.com/documentation/json-data.html">http://knockoutjs.com/documentation/json-data.html</a>
  I understand about getting and sending json data. How is the json data being matched to the form? What is mapping and is there a plugin or easy example of how to map the json data back to my form? Basically, how do I do what is commented inside the knockout code examples below?</p>
  
  <p>Fetch Data:</p>
  
  <pre><code>$.getJSON("/some/url", function(data) {
      // Now use this data to update your view models,
      // and Knockout will update your UI automatically
  })
  </code></pre>
  
  <p>Send Data:</p>
  
  <pre><code>var data = /* Your data in JSON format - see below */;
  $.post("/some/url", data, function(returnedData) {
      // This callback is executed if the post was successful    
  })
  </code></pre>