I need to load following json data file in a javascript file using ajax
here is my json data
[
{
"mobile_no": "9633127725"
},
{
"mobile_no":"9605895175"
},
{
"mobile_no": "8590823209"
}
]
I need to load following json data file in a javascript file using ajax
here is my json data
[
{
"mobile_no": "9633127725"
},
{
"mobile_no":"9605895175"
},
{
"mobile_no": "8590823209"
}
]
In success function of $.ajax():
$.ajax({
//url
//type
success: function(data) {
var returnData = JSON.parse(data);
}
});
Now you could use returnData
like an array with value is Json Data from data
.