Use this method is used to convert json string response to an array, object, number var temp = []; temp = angular.fromJson(json); console.log(temp);