# POST Only Specific Model Properties

**URL:** <https://discuss.emberjs.com/t/post-only-specific-model-properties/3979>\
**Category:** Ember Data\
**Created:** [January 25, 2014, 8:47pm UTC](https://discuss.emberjs.com/t/post-only-specific-model-properties/3979 "2014-01-25T20:47:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattapayne](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mattapayne/32/15439_2.png) [@mattapayne](https://discuss.emberjs.com/u/mattapayne)\
**Post date:** [January 25, 2014, 8:47pm UTC](https://discuss.emberjs.com/t/post-only-specific-model-properties/3979/1 "2014-01-25T20:47:18Z")

</div>

Hi,

Using Ember Data to create a new record, I see that it’s serializing all the declared fields on my model. Normally, this is fine and desirable, but there are cases where I want to be able to control what is serialized and sent.

Is it possible to override the serialization behavior and if so, where might I start?

I am using the default ActiveModelSerializer

Thanks for any help.

Matt

---

<div class="post-metadata">

**Author:** ![mattapayne](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mattapayne/32/15439_2.png) [@mattapayne](https://discuss.emberjs.com/u/mattapayne)\
**Post date:** [January 25, 2014, 11:32pm UTC](https://discuss.emberjs.com/t/post-only-specific-model-properties/3979/2 "2014-01-25T23:32:00Z")

</div>

Answering my own question here.

What I ended up doing was creating a specific serializer for the model that I need more control over.

So, if my model were a Post, I would have this:

```
App.PostSerializer = DS.ActiveModelSerializer.extend
  serialize: (post, options) ->
    json =
      content_id: post.get("content_id")
    if options.includeId?
      json.id = post.get("id")
    json

```

Hope this helps someone in the future.
