src/org/ohmage/domain/AccessRequest.java
public JSONObject toJsonObject() throws JSONException {
		JSONObject result = new JSONObject();
		
		result.put(JSON_KEY_USERNAME, username);
		// result.put(JSON_KEY_UUID, uuid.toString());
		result.put(JSON_KEY_EMAIL_ADDRESS, emailAddress);
		result.put(JSON_KEY_REQUEST_TYPE, requestType);
		result.put(JSON_KEY_STATUS, requestStatus.toString());
		result.put(JSON_KEY_REQUEST_CONTENT, requestContent);
		result.put(JSON_KEY_CREATION_TIME, DateTimeUtils.getIso8601DateString(creationTime, true));
		result.put(JSON_KEY_CREATION_TIME, DateTimeUtils.getIso8601DateString(lastModifiedTime, true));
		
		return result;
	}
/**
	 * Returns this UserSetupRequest object as a JSONObject 
	 *  
	 * @return Returns a JSONObject containing the user setup request information.
	 * 
	 * @throws JSONException Thrown if generating the object caused an error.
	 */
Returns this UserSetupRequest object as a JSONObject

@return Returns a JSONObject containing the user setup request information.

@throws JSONException Thrown if generating the object caused an error.
Returns this UserSetupRequest object as a JSONObject @return Returns a JSONObject containing the user setup request information . @throws JSONException Thrown if generating the object caused an error .
public JSONObject toJsonObject() throws JSONException {
		JSONObject result = new JSONObject();
		result.put(JSON_KEY_USERNAME, username);
		result.put(JSON_KEY_EMAIL_ADDRESS, emailAddress);
		result.put(JSON_KEY_REQUEST_TYPE, requestType);
		result.put(JSON_KEY_STATUS, requestStatus.toString());
		result.put(JSON_KEY_REQUEST_CONTENT, requestContent);
		result.put(JSON_KEY_CREATION_TIME, DateTimeUtils.getIso8601DateString(creationTime, true));
		result.put(JSON_KEY_CREATION_TIME, DateTimeUtils.getIso8601DateString(lastModifiedTime, true));
		return result;
	}
public JSONObject toJsonObject ( ) throws JSONException { JSONObject result = new JSONObject ( ) ; result . put ( JSON_KEY_USERNAME , username ) ; result . put ( JSON_KEY_EMAIL_ADDRESS , emailAddress ) ; result . put ( JSON_KEY_REQUEST_TYPE , requestType ) ; result . put ( JSON_KEY_STATUS , requestStatus . toString ( ) ) ; result . put ( JSON_KEY_REQUEST_CONTENT , requestContent ) ; result . put ( JSON_KEY_CREATION_TIME , DateTimeUtils . getIso8601DateString ( creationTime , true ) ) ; result . put ( JSON_KEY_CREATION_TIME , DateTimeUtils . getIso8601DateString ( lastModifiedTime , true ) ) ; return result ; }
Returns this UserSetupRequest object as a JSONObject
Returns this UserSetupRequest object as a JSONObject
// result.put(JSON_KEY_UUID, uuid.toString());