My application was built on Angular JS and has a lot AJAX requests on server. For example, in PHP I format output array like as:
$dialog[$us
Let's say you have an object like:
$scope.myObj = {type:"Fiat", model:500, color:"white"};
Then, in your angular Controller
you can do something like:
$scope.array = [];
angular.forEach($scope.myObj, function(element) {
$scope.array.push(element);
});
and then in your HTML
{{obj}}
Here is a demo plunker