Using jquery ajax request like this
$.ajax({
url: 'mydata.json',
type: 'get',
error: function(data){
},
success: function(data){
data=jQuery.parseJSON(data);
//do something with data
}
});
It is working perfect except when I implement it on server with a server url which internally generates json response object and return. then I don't need jQuery.parseJSON(data). Is there a way where I can use local json file and get response as json object?