title: How to get json object in ajax response using local .json file and jquery?
body: <p>Using jquery ajax request like this</p>
  
  <pre><code>$.ajax({
  url: 'mydata.json',
  type: 'get',
  error: function(data){
  },
  success: function(data){
    data=jQuery.parseJSON(data);
    //do something with data              
      }
  });
  </code></pre>
  
  <p>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? </p>