Getting Ember to work with Sails.js not returning a valid JSON api document

Hello there!

I’m new to the Ember and Sails scene and I’m running into the issue where Sails.js isn’t returning a valid JSON api document. I figured that some of you might have ran into this problem and know a solution or point me in the right direction of getting everything to pair together nicely.

If you are just getting started with Sails, I’d suggest steering clear of it. More details here: Which back end framework for node.js fits well with the Ember way: Express, Hapi, or Sails?