Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void loadLevel(String path)
- {
- parser = new JSONParser();
- Object thisLevel;
- try {
- thisLevel = parser.parse(new FileReader(path));
- JSONObject jsonObject = (JSONObject) thisLevel;
- JSONArray layers = (JSONArray) jsonObject.get("layers");
- JSONObject data = (JSONObject) layers.get(0);
- System.out.println(data.get(2));
- // Iterator<String> iterator = map.iterator();
- //
- // while (iterator.hasNext())
- // {
- // System.out.println(iterator.next());
- // }
- } catch (IOException | ParseException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement