Here is some code I am working on:
$scope.students=[];
$scope.students[[object Object][object Object]]
[0]{"id":"101","name":"one","marks":"67"}
[1]{"id":"102","name":"two","marks":"89"}
I would like to reformat it into the following structure.
$scope.students=[{"id":"101","name":"one","marks":"67"},{"id":"102","name":"two","marks":"89"}]
I attempted to use the .map function but it did not work as expected. Now I am looking for a way to convert an array of arrays into an array of objects using AngularJS.