item.setRequiredSkillRank(jsonobject.getInt("requiredSkillRank"));
if (jsonobject.has("itemSource")) {
JSONObject itemSourceObj = jsonobject.getJSONObject("itemSource");
ItemSource itemSource = new ItemSource();
itemSource.setSourceId(itemSourceObj.getInt("sourceId"));
itemSource.setSourceType(itemSourceObj.getString("sourceType"));
}
item.setBaseArmor(jsonobject.getInt("baseArmor"));
item.setHasSockets(jsonobject.getBoolean("hasSockets"));
item.setAuctionable(jsonobject.getBoolean("isAuctionable"));