title: Load data from JSON file generated by Tiled using org.json.simple
body: <p>Newbie here...
  I need to address the following two "data" arrays in this JSON file individually so I can save them in different int arrays:</p>
  
  <pre><code>{ 
  //other stuff ...
  "layers":[
  {"data":[1, 1, 1, 1, 5, 1, 1, 1...],
  //other stuff ...
  }, 
  {"data":[1, 1, 1, 1, 5, 1, 1, 1...],
  //other stuff...
  }
  ],
  //other stuff...
  }
  </code></pre>
  
  <p>thats the code I have so far :</p>
  
  <pre><code>@SuppressWarnings("unchecked")
      private void loadJsonData() {
          JSONParser parser = new JSONParser();
          try {
              Object obj = parser.parse(new FileReader(path));
              String jsonStr = obj.toString();
              JSONObject json = (JSONObject) JSONValue.parse(jsonStr);
  
            //other code...
  
            mapTiles = ...;
            objectTiles = ...;
  
          } catch (ParseException ex) {
              ex.printStackTrace();
          } catch (FileNotFoundException ex) {
              ex.printStackTrace();
          } catch (IOException ex) {
              ex.printStackTrace();
          } catch (ClassCastException ex) {
              ex.printStackTrace();
          }
      }
  </code></pre>
  
  <p>Im sure the answer is somwehere out there but Im too incompetent to find it :D</p>