As per this documentation, AngularJS will strip off the prefix )]}',\n
in the JSON responses. I am sending my JSON responses with the prefix in my JSON responses but AngularJS is not stripping off the prefix and interpreting the results. Any idea? Thanks.
I sent the responses back from Spring as described here. And it's sending JSON response with the prefix )]}',\n
. In AngularJS, I need to retrieve the values:
var Retrieve = $resource('app/', {..});
and in the success call back function:
var successQuestions = function (q) {
$rootScope.q1 = q.question1;
};
I am expecting q JSON to be properly interpreted by AngularJS as a JSON but it is not.