JSON array convert to Javascript array
you should be able to use it as an object, which supports all of the key functions of an array
hai i got my output in JSON...now i need to convert those data into javascript..
Use JSON.parse()
function in order to convert it to JS object.
var obj = JSON.parse(yourJsonString);
And now you can use for-in
loop to iterate over each of its items:
for (var x in obj){
if (obj.hasOwnProperty(x)){
// your code
}
}