src/org/ohmage/domain/campaign/prompt/ChoicePrompt.java
@Override
	public JSONObject toJson() throws JSONException {
		JSONObject result = super.toJson();
		
		JSONObject choiceGlossary = new JSONObject();
		for(Integer key : choices.keySet()) {
			choiceGlossary.put(key.toString(), choices.get(key).toJson());
		}
		result.put(JSON_KEY_CHOICE_GLOSSARY, choiceGlossary);
		
		return result;
	}
/**
	 * Creates a JSONObject that represents this choice prompt.
	 * 
	 * @return A JSONObject that represents this choice prompt.
	 * 
	 * @throws JSONException There was a problem creating the JSONObject.
	 */
Creates a JSONObject that represents this choice prompt.

@return A JSONObject that represents this choice prompt.

@throws JSONException There was a problem creating the JSONObject.
Creates a JSONObject that represents this choice prompt . @return A JSONObject that represents this choice prompt . @throws JSONException There was a problem creating the JSONObject .
@Override
	public JSONObject toJson() throws JSONException {
		JSONObject result = super.toJson();
		JSONObject choiceGlossary = new JSONObject();
		for(Integer key : choices.keySet()) {
			choiceGlossary.put(key.toString(), choices.get(key).toJson());
		}
		result.put(JSON_KEY_CHOICE_GLOSSARY, choiceGlossary);
		return result;
	}
@ Override public JSONObject toJson ( ) throws JSONException { JSONObject result = super . toJson ( ) ; JSONObject choiceGlossary = new JSONObject ( ) ; for ( Integer key : choices . keySet ( ) ) { choiceGlossary . put ( key . toString ( ) , choices . get ( key ) . toJson ( ) ) ; } result . put ( JSON_KEY_CHOICE_GLOSSARY , choiceGlossary ) ; return result ; }
Creates a JSONObject that represents this choice prompt.
Creates a JSONObject that represents this choice prompt .