title: Loading JSON object into Ember Data, e.g. Embedding JSON into the page on load and populating the store
body: <p>My application embeds initial data into the html so that Ember does not need to send extra http requests on initialization. I am using the latest Ember data and I have not been able to succesfully take a JSON object, which is the same as Active Model Serializer returns when you save or create a record, and load it into the store.</p>
  
  <p>I am currently trying these methods with no success:</p>
  
  <p>In a route -</p>
  
  <pre><code>this.get('store').load(App.Post, data)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>this.get('store').loadMany(App.Post, data)
  </code></pre>
  
  <p>I also use Pusher that sends me the JSON (generated by Active Model Serializer) for an updated  object and the callback in my route currently looks like this.</p>
  
  <pre><code>refresh: function(data) {
    var json = data
    var store = this.get('store')
    var type = App.Post
    var id = data.reply.id
    Ember.run(this, function(){
      store.adapterForType(App.Post).didFindRecord(store, type, json, id);
    });
  }
  </code></pre>
  
  <p>Has anyone successfully done this? I know Discourse is not using Ember Data so their solution is different. I really appreciate any help in the matter. Thanks</p>