knockout.js using the mapping plugin <p>I am a newbie with knockout.js and want to start using the automatic mapping plugin. How can I convert this manually mapped code to use the mapping plugin?</p> <p><a href="http://jsfiddle.net/infatti/jWTtb/6/" rel="nofollow">http://jsfiddle.net/infatti/jWTtb/6/</a></p> <pre><code>// Here's my data model var ViewModel = function (firstName, lastName) { var self = this; self.firstName = ko.observable(firstName); self.lastName = ko.observable(lastName); self.loadJson = function () { $.getJSON("http://echo.jsontest.com/firstName/Stuart/lastName/Little", function (data) { self.firstName(data.firstName); self.lastName(data.lastName); }); return true; }; }; var vm = new ViewModel(); ko.applyBindings(vm); // This makes Knockout get to work </code></pre>