EmberJs and ASP.NET Web API and JSON Serialization

I just switched from Angular to Ember for a new project and really enjoying it.  Per the requirements, I need to use ASP.NET WEB API which is actually pretty impressive.  I instantly ran into a problem though.  Ember expects its json results to be wrapped i.e. Ember expects:

But the API returns

After trying several solutions and thanks to these posts: link 1link 2 and link 3 I created a custom Json formatter that wraps the response and it works with arrays as well.  Here it is:


To use it, simply add this line to your WebApiConfig class:


And the model looks like this:

I added this as a gist in github at https://gist.github.com/eibrahim/10286724