$scope.parseItem = function(string) { var newString = string.replace(/['']/g,''); var jsonFormated = JSON.parse(newString); return jsonFormated.Message; } //pass the single element