public boolean primitive(Object value) throws ParseException, IOException { if (key.equals("title")) { a.setTitle((String) value); } else if (key.equals("description")) { a.setDescription((String) value); } else if (key.equals("can_edit")) { a.setCanEdit((Boolean) value); } else if (curState == 2) { // to change to handle objects in the members array a.setUrl((String) value); return false; } return true; }