I'm parsing the json to get data but it is showing the undefined error.I'm using the following code.
JSON Data:-
 [{"id":"1","name":"vikash","email":"vikash@yahoo.com","phone":"98744254114"},false]
javascript:-
function getid(id) {
    //document.getElementById('pid').value=id;
    $.ajax({
        url: "page.php?id=" + id,
        success: function(result) {
            alert(result);
            var a = console.log(result.name);
            alert(a);
        }
    });
}
 
     
     
    