title: Serialize knockout viewmodel, ideas?
body: <p>I'm trying to serialize the viewmodel to json, but I only get <code>undefined</code> on the <code>ko.toJSON(PageViewModel)</code> part. Any idea?</p>
  
  <pre><code>function PageViewModel() {
  
      //Properties
      this.Name = ko.observable();
      this.Title = ko.observable();
      this.Language = ko.observable();
  
      //Seo
      this.SEOKeywords = ko.observable();
      this.SEODescription = ko.observable();
      this.SEOIndexPage = ko.observable();
      this.SEOGeoPositionLatitude = ko.observable();
      this.SEOGeoPositionLongitude = ko.observable();
      this.SEOGeoPositionPlaceName = ko.observable();
      this.SEOGeoPositionRegion = ko.observable();
  
  }
  </code></pre>
  
  
  
  <pre><code>ko.applyBindings(new PageViewModel());
  window.loadFirebugConsole;
  console.log(ko.toJSON(PageViewModel));
  </code></pre>
  
  <p>Thanks
  Mick</p>