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:
1 |
{"users":{"username":"user0","email":"email0@test.com","password":"1234"}} |
But the API returns
1 |
{"username":"user0","email":"email0@test.com","password":"1234"} |
After(…)