Is there a way to locally access .json files using something like:
$.getJSON("example.json", function(example){
// do something
});
but in Eclipse? I want to use Eclipse because there are java components that already exist in the project and are loaded up in Eclipse. I saw similar questions like this but there seems to only be solutions for Java. I am also very new to Javascript so I'm open to other more elegant solutions as well.
example.jsonin the root or in a specific directory?/name_of_directory_containing_the_json/example.json. Hope it helps