I have a JsonString that contains information about different car models.
[{
"mileage": 12033,
"name": "Ford",
"model": "Focus",
"engine": "3 gophers on a treadmill",
"color": "green"
}, {
"mileage": 85000,
"name": "Chevy",
"model": "mailbu",
"engine": "6 cylinder",
"color": "Maroon"
}, {
"mileage": 612033,
"name": "Ford",
"model": "F150",
"engine": "6 cylinder",
"color": "Green"
}, {
"mileage": 89500,
"name": "Pontiac",
"model": "G6",
"engine": "2 cylinder",
"color": "Blue"
}, {
"mileage": 17200,
"name": "Pontiac",
"model": "G8",
"engine": "3 cylinder",
"color": "Silver"
}, {
"mileage": 308,
"name": "Toyota",
"model": "Forerunner",
"engine": "6 cylinders",
"color": "Grey"
}, {
"mileage": 65328,
"name": "Volvo",
"model": "wagon",
"engine": "8 cyclinders while not in test mode otherwise 2 bicycle pedals",
"color": "Red"
}, {
"mileage": 50,
"name": "IKea",
"model": "Ronde",
"engine": "3 self propelled coasters",
"color": "wood panelling"
}, {
"mileage": 17200,
"name": "Pontiac",
"model": "Grand Am",
"engine": "8 cylinder",
"color": "rusty"
}]
Could someone assist me with converting this string into an array in angular.js? I've been trying for hours but couldn't figure it out. Appreciate the help in advance.