# Is the DS.EmbeddedRecordsMixin compatible with the JsonApiAdapter & JsonApiSerializer?

**URL:** <https://discuss.emberjs.com/t/is-the-ds-embeddedrecordsmixin-compatible-with-the-jsonapiadapter-jsonapiserializer/8419>\
**Category:** Ember Data\
**Created:** [July 20, 2015, 7:37pm UTC](https://discuss.emberjs.com/t/is-the-ds-embeddedrecordsmixin-compatible-with-the-jsonapiadapter-jsonapiserializer/8419 "2015-07-20T19:37:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danr1979](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/danr1979/32/11254_2.png) [@danr1979](https://discuss.emberjs.com/u/danr1979)\
**Post date:** [July 20, 2015, 7:37pm UTC](https://discuss.emberjs.com/t/is-the-ds-embeddedrecordsmixin-compatible-with-the-jsonapiadapter-jsonapiserializer/8419/1 "2015-07-20T19:37:41Z")

</div>

I’m using Ember 1.13.4 & Ember data 1.13.5 with Ember CLI. I am using the default JsonApiAdapter & serializer & noticed that when I use the DS.EmbeddedRecordsMixin with the serializer although I get the “included” key in the payload the “attributes” key contains all null values & instead the attributes appear at the root of the payload. This invalidates the json-api format.

Should the mixin actually work with json-api or should I avoid it?

Thanks.

---

<div class="post-metadata">

**Author:** ![kmiyashiro](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@kmiyashiro](https://discuss.emberjs.com/u/kmiyashiro)\
**Post date:** [July 21, 2015, 8:43pm UTC](https://discuss.emberjs.com/t/is-the-ds-embeddedrecordsmixin-compatible-with-the-jsonapiadapter-jsonapiserializer/8419/2 "2015-07-21T20:43:14Z")

</div>

This was just fixed and released [https://github.com/emberjs/data/pull/3550](https://github.com/emberjs/data/pull/3550)

---

<div class="post-metadata">

**Author:** ![danr1979](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/danr1979/32/11254_2.png) [@danr1979](https://discuss.emberjs.com/u/danr1979)\
**Post date:** [July 22, 2015, 4:35am UTC](https://discuss.emberjs.com/t/is-the-ds-embeddedrecordsmixin-compatible-with-the-jsonapiadapter-jsonapiserializer/8419/3 "2015-07-22T04:35:19Z")

</div>

Thanks for the reply.

I wasn’t very clear in my post but I get the “included” key & the records within it. But, I found that although the root “attributes” key correctly contained the model record, all of the model field values were null.
