java script - using parse.com query with angular ng-repeat <p>I make a query from parse.com angd get and array of 2 object. Now I want to user ng-reapet('phone in phones') , so I need to convert it to json. I didn't suucess to do it. for some reason, it doesnt see the result as a json.</p> <pre><code> var Project = Parse.Object.extend("Project"); var query = new Parse.Query(Project); query.find({ success: function (results) { var allProjects = []; for (var i = 0; i &lt; results.length; i++) { allProjects.push(results[i].toJSON()); } $scope.phones = allProjects; //i also tried this : $scope.phones = JSON.stringify(allProjects); }, error: function (error) { alert("Error: " + error.code + " " + error.message); } }); </code></pre> <p>Thanks</p>