# Ember data Post format

**URL:** <https://discuss.emberjs.com/t/ember-data-post-format/6131>\
**Category:** Ember Data\
**Created:** [August 24, 2014, 7:54pm UTC](https://discuss.emberjs.com/t/ember-data-post-format/6131 "2014-08-24T19:54:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![racamp101](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@racamp101](https://discuss.emberjs.com/u/racamp101)\
**Post date:** [August 24, 2014, 7:54pm UTC](https://discuss.emberjs.com/t/ember-data-post-format/6131/1 "2014-08-24T19:54:36Z")

</div>

My web api is expection something like {firstName: “”, lastName: “”} but the restadaptor formats posts like this:{client: {firstName: “”, lastName: “”}} how do i get the correct format?

---

<div class="post-metadata">

**Author:** ![ultimatemonty](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ultimatemonty/32/13849_2.png) [@ultimatemonty](https://discuss.emberjs.com/u/ultimatemonty)\
**Post date:** [August 25, 2014, 4:27am UTC](https://discuss.emberjs.com/t/ember-data-post-format/6131/2 "2014-08-25T04:27:16Z")

</div>

You likely need to override the `serialize` method in the RESTSerializer:

Look into [RESTSerializer.serialize](http://emberjs.com/api/data/classes/DS.RESTSerializer.html#toc_customization) and [RESTSerializer.serializeIntoHash](http://emberjs.com/api/data/classes/DS.RESTSerializer.html#method_serializeIntoHash) to start. Also search Github for “Ember-Data” and there a ton of adapters you can reference if needed.

---

<div class="post-metadata">

**Author:** ![cssian](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/cssian/32/9448_2.png) [@cssian](https://discuss.emberjs.com/u/cssian)\
**Post date:** [August 30, 2014, 8:16am UTC](https://discuss.emberjs.com/t/ember-data-post-format/6131/3 "2014-08-30T08:16:38Z")

</div>

@ultimatemonty is spot on IMHO regarding the need to override.

You might be interested to know _why_ the RESTAdaptor formats the data with a ‘containing property’ of **client** (in your case): See [http://jsonapi.org/](http://jsonapi.org/) a project of Yehuda Katz, one of the EmberJS principals. That data architecture is proferred as a standard, so I guess EmberJS is walking the walk, as it were.
