var arr = [{"code":1,"pos":0,"row":0}]; alert(arr[0]["row"]) var str = '[{"code":1,"pos":0,"row":0}]'; var arr = JSON.parse(str) alert(arr[0]["row"])