src/org/ohmage/domain/campaign/Prompt.java
@Override
	public JSONObject toJson() throws JSONException {
		JSONObject result = super.toJson();
		
		result.put(JSON_KEY_UNIT, unit);
		result.put(JSON_KEY_TEXT, text);
		result.put(JSON_KEY_EXPLANATION_TEXT, explanationText);
		result.put(JSON_KEY_SKIPPABLE, skippable);
		result.put(JSON_KEY_SKIP_LABEL, skipLabel);
		result.put(JSON_KEY_PROMPT_TYPE, type.toString());
		result.put(JSON_KEY_DISPLAY_LABEL, displayLabel);
		
		return result;
	}
/**
	 * Creates a JSONObject that represents this prompt.
	 * 
	 * @return A JSONObject representing this prompt or null if there is an
	 * 		   error.
	 * 
	 * @throws JSONException There was a problem creating the JSONObject.
	 */
Creates a JSONObject that represents this prompt.

@return A JSONObject representing this prompt or null if there is an
error.

@throws JSONException There was a problem creating the JSONObject.
Creates a JSONObject that represents this prompt . @return A JSONObject representing this prompt or null if there is an error . @throws JSONException There was a problem creating the JSONObject .
@Override
	public JSONObject toJson() throws JSONException {
		JSONObject result = super.toJson();
		result.put(JSON_KEY_UNIT, unit);
		result.put(JSON_KEY_TEXT, text);
		result.put(JSON_KEY_EXPLANATION_TEXT, explanationText);
		result.put(JSON_KEY_SKIPPABLE, skippable);
		result.put(JSON_KEY_SKIP_LABEL, skipLabel);
		result.put(JSON_KEY_PROMPT_TYPE, type.toString());
		result.put(JSON_KEY_DISPLAY_LABEL, displayLabel);
		return result;
	}
@ Override public JSONObject toJson ( ) throws JSONException { JSONObject result = super . toJson ( ) ; result . put ( JSON_KEY_UNIT , unit ) ; result . put ( JSON_KEY_TEXT , text ) ; result . put ( JSON_KEY_EXPLANATION_TEXT , explanationText ) ; result . put ( JSON_KEY_SKIPPABLE , skippable ) ; result . put ( JSON_KEY_SKIP_LABEL , skipLabel ) ; result . put ( JSON_KEY_PROMPT_TYPE , type . toString ( ) ) ; result . put ( JSON_KEY_DISPLAY_LABEL , displayLabel ) ; return result ; }
Creates a JSONObject that represents this prompt.
Creates a JSONObject that represents this prompt .