I have a JSON output like the following:
JSON
[\"City1\",\"City2\",\"City3\"]
I want to get each of the city names, how can i do th
Use the parseJSON method:
var json = '["City1","City2","City3"]'; var arr = $.parseJSON(json);
Then you have an array with the city names.