JSONObject itemSpellObj = spellArray.getJSONObject(i);
ItemSpell itemSpell = new ItemSpell();
itemSpell.setSpellId(itemSpellObj.getInt("spellId"));
JSONObject spellObj = itemSpellObj.getJSONObject("spell");
Spell spell = new Spell();
spell.setId(spellObj.getInt("id"));
spell.setName(spellObj.getString("name"));
spell.setDescription(spellObj.getString("description"));
spell.setCastTime(spellObj.getString("castTime"));
itemSpell.setSpell(spell);
itemSpell.setnCharges(itemSpellObj.getInt("nCharges"));
itemSpell.setConsumable(itemSpellObj.getBoolean("consumable"));
itemSpell.setCategoryId(itemSpellObj.getInt("categoryId"));