src/org/ohmage/domain/campaign/SurveyItem.java
public JSONObject toJson() throws JSONException {
		JSONObject result = new JSONObject();
		
		result.put(JSON_KEY_ID, id);
		result.put(JSON_KEY_CONDITION, condition);
		result.put(JSON_KEY_INDEX, index);
		
		return result;
	}
/**
	 * Generates a JSONObject that represents this survey item.
	 * 
	 * @return A JSONObject representing this survey item.
	 * 
	 * @throws JSONException There was a problem creating the JSONObject.
	 */
Generates a JSONObject that represents this survey item.

@return A JSONObject representing this survey item.

@throws JSONException There was a problem creating the JSONObject.
Generates a JSONObject that represents this survey item . @return A JSONObject representing this survey item . @throws JSONException There was a problem creating the JSONObject .
public JSONObject toJson() throws JSONException {
		JSONObject result = new JSONObject();
		result.put(JSON_KEY_ID, id);
		result.put(JSON_KEY_CONDITION, condition);
		result.put(JSON_KEY_INDEX, index);
		return result;
	}
public JSONObject toJson ( ) throws JSONException { JSONObject result = new JSONObject ( ) ; result . put ( JSON_KEY_ID , id ) ; result . put ( JSON_KEY_CONDITION , condition ) ; result . put ( JSON_KEY_INDEX , index ) ; return result ; }
Generates a JSONObject that represents this survey item.
Generates a JSONObject that represents this survey item .