title: Working with Embedded Records and Ember Data
body: <p>I am working with Ember and Ember Data, and the JSON I get back from the server contains an embedded object array. I need to know what I am doing wrong. I have a JSBin with the code below:</p>
  
  <p><a href="http://emberjs.jsbin.com/faledu/6/edit?html,js,output" rel="nofollow">http://emberjs.jsbin.com/faledu/6/edit?html,js,output</a></p>
  
  <p>Currently, I am getting the following error:</p>
  
  <blockquote>
    <p>Error while processing route: index Assertion Failed: Ember Data expected a number or string to represent the record(s) in the <code>objects</code> relationship instead it found an object. If this is a polymorphic relationship please specify a <code>type</code> key. If this is an embedded relationship please include the <code>DS.EmbeddedRecordsMixin</code> and specify the <code>objects</code> property in your serializer's attrs object. Error: Assertion Failed: Ember Data expected a number or string to represent the record(s) in the <code>objects</code> relationship instead it found an object. If this is a polymorphic relationship please specify a <code>type</code> key. If this is an embedded relationship please include the <code>DS.EmbeddedRecordsMixin</code> and specify the <code>objects</code> property in your serializer's attrs object.</p>
  </blockquote>
  
  <p>I am using DS.EmbeddedRecordsMixin in my serializer, but it doesn't seem to be working. How can I use that JSON with Ember Data?</p>