title: JSON-Simple get array based on contents
body: <p>So, I have a JSON file where I want to load an array within the main object, so I load it with:</p>
  
  <pre><code>try {
      schemaData = (JSONObject) parser.parse(new FileReader(schema));
      schemaItemDataArray = (JSONArray) schemaData.get("items");
  } catch (IOException | ParseException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>The array called "items" that I load with</p>
  
  <pre><code>schemaItemDataArray = (JSONArray) schemaData.get("items");
  </code></pre>
  
  <p>contains a large amount of nameless objects that all have the following structure:</p>
  
  <pre><code>            {
                  "name": "TF_WEAPON_BAT",
                  "defindex": 0,
                  "item_class": "tf_weapon_bat",
                  "item_type_name": "Bat",
                  "item_name": "Bat",
                  "proper_name": false,
                  "item_slot": "melee",
                  "model_player": "models\/weapons\/w_models\/w_bat.mdl",
                  "item_quality": 0,
                  "image_inventory": "backpack\/weapons\/c_models\/c_bat",
                  "min_ilevel": 1,
                  "max_ilevel": 1,
                  "image_url": "http:\/\/media.steampowered.com\/apps\/440\/icons\/c_bat.d037d6a40ec30ab4aa009387d476dca889b6f7dc.png",
                  "image_url_large": "http:\/\/media.steampowered.com\/apps\/440\/icons\/c_bat_large.0ac4b6f335f671bd6b5e6ae02f47985af2da8c48.png",
                  "craft_class": "weapon",
                  "craft_material_type": "weapon",
                  "capabilities": {
                      "nameable": true,
                      "can_craft_mark": true,
                      "can_be_restored": true,
                      "strange_parts": true,
                      "can_card_upgrade": true,
                      "can_strangify": true,
                      "can_consume": true
                  },
                  "used_by_classes": [
                      "Scout"
                  ]
  
              }
  </code></pre>
  
  <p>What I want to be able to do is get a JSONObject containing an object that I choose by filtering through the name value.
  For instance, I want to get all objects that have the "name" key set to "TF_WEAPON_BAT", and then store it into a JSONObject called foundItem.</p>
  
  <p>Thanks in advance, Denton.</p>