Been running into a weird buggish issue. I have a method that basically builds a big JSON object, field by field, then returns it. It worked when I test it in console.
I was able to fix this by enclosing the return value in JSON.stringify(). Any ideas what went wrong?