It’s not possible to make AJAX calls to local resources since the request is of HTTP type. What you can do it, run a local webserver, serve up the file and make AJAX calls to localhost.
Check the code below to read JSON:
jQuery.getJSON():
Refer to the documentation here.
Interested in Java? Check out this Java tutorial by Intellipaat.