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
var dataArray = []; var obj = jQuery.parseJSON(yourInput); $.each(obj, function (index, value) { dataArray.push([value["yourID"].toString(), value["yourValue"] ]); });
this helps me a lot :-)