title: How do I parse a JSON file with multiple arrays?
body: <p>So I have a JSON File with multiple arrays. "data" contains a whole bunch of words that contain "clues" to each word. I've parsed up a JSON file with one array but I'm unsure of how to parse this up. I know that JSONObjects are surrounded by {} and JSONArrays are surrounded by [], so "data" should be a JSONObject and each word an array. </p>
  
  <pre><code>{
    "data":{
       "abase":[
         "put down",
         "humiliate",
         "cut down",
       ],
       "abate":[
         "diminish",
         "let up",
       ],
       "abbot":[
        "monastery head",
        "monastic title",
       ]
   }
  }
  </code></pre>
  
  <p>I can parse up a JSON file with a singular array and create objects from the data as such:</p>
  
  <pre><code>JSONObject allThings = loadJSONObject("filename.json");
  JSONArray arr = getJSONArray("titleofarray");
  for (int x = 0; x&lt;=arr.size(); x++){
      String fieldOne = arr.getJSONObject(x).getString("firstField");
      int fieldTwo = arr.getJSONObject(x).getInt("secondField");
  }
  </code></pre>
  
  <p>Can I create an ArrayList of JSONArrays and add each array in the file to that ArrayList with a for-each? Sorry if I'm not 100% clear on my question, it's hard to phrase a question about something you don't understand, but if you need clarification, please let me know, I'd be glad to explain in further detail. </p>
  
  <p>Edit: I'm using Processing/Java</p>