I\'ve got JSON file, which I want to parse. The JSON file (\"myfile\") has format as follows:
{ \"LanguageLevels\": { \"1\": \"Początkujący\",
You can see that JSONObject extends a HashMap, so you can simply use it as a HashMap:
HashMap
JSONObject jsonChildObject = (JSONObject)jsonObject.get("LanguageLevels"); for (Map.Entry in jsonChildOBject.entrySet()) { System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue()); }