public void fromJSONObject(JSONObject o) throws ParseException {

		setPrompt((String)o.get(KEY_PROMPT));
		setAnswer((String)o.get(KEY_ANSWER));
		
		String type = (String)o.get(KEY_TYPE);
		setBonusType(BONUS_TYPE.valueOf(type));

		JSONArray jChoices = (JSONArray)o.get(KEY_CHOICES);
		if (jChoices == null) {
			setChoices(null);
		} else {
			String[] choice = new String[jChoices.size()];
			for (int i = 0; i < jChoices.size(); i++) {
				choice[i] = (String)jChoices.get(i);
			}
			setChoices(choice);
		}
		setWeek(((Number)o.get(KEY_WEEK)).intValue());
		setNumber(((Number)o.get(KEY_NUMBER)).intValue());
	}