json parse stringified array
var result = '[{"name": "John"}, {"name": "Alice"}, {"name": "Lily"}]' console.log(JSON.parse(result))
Here is what the above code is Doing:
1. We’re using the JSON.parse() method to convert the JSON string into a JavaScript object.
2. We’re using the JSON.stringify() method to convert the JavaScript object into a JSON string.