I've been trying to load my json file (LandInfo) from a res folder within my src folder.
I want to load the file in so that it can be parsed with Gson.
I've tried doing:
getClass().getResource("res/LandInfo").toExternalForm()
and
new InputStream(getClass().getResourceStream("res/LandInfo"))
since Gson#fromJSon accepts either a string or a reader
However, both options return null.
How would I go about finding the file in a correct manner?