as the Title states i would like to check the Keys of an external Json File in Java.
What i tried:
JSONObject json = new JSONObject("src/com/json/inventory.json");
System.out.println(json.keys());
Issue: Doesn't do anything.
What are other posibilities?
Thank you in advance!
EDIT Error