src/org/ohmage/domain/UserInformation.java
public JSONObject toJsonObject() throws JSONException {
			JSONObject result = new JSONObject();
			
			result.put(UserPersonalColumnKey.FIRST_NAME.toString(), firstName);
			result.put(UserPersonalColumnKey.LAST_NAME.toString(), lastName);
			result.put(
					UserPersonalColumnKey.ORGANIZATION.toString(), 
					organization);
			result.put(
					UserPersonalColumnKey.PERSONAL_ID.toString(), 
					personalId);
			
			return result;
		}
/**
		 * Creates a JSONObject that represents this user. Any fields that were set
		 * to null will be missing an entry in this object.
		 * 
		 * @return A JSONObject that represents this object.
		 * 
		 * @throws JSONException There was an error creating the JSONObject.
		 */
Creates a JSONObject that represents this user. Any fields that were set
to null will be missing an entry in this object.

@return A JSONObject that represents this object.

@throws JSONException There was an error creating the JSONObject.
Creates a JSONObject that represents this user . Any fields that were set to null will be missing an entry in this object . @return A JSONObject that represents this object . @throws JSONException There was an error creating the JSONObject .
public JSONObject toJsonObject() throws JSONException {
			JSONObject result = new JSONObject();
			result.put(UserPersonalColumnKey.FIRST_NAME.toString(), firstName);
			result.put(UserPersonalColumnKey.LAST_NAME.toString(), lastName);
			result.put(
					UserPersonalColumnKey.ORGANIZATION.toString(), 
					organization);
			result.put(
					UserPersonalColumnKey.PERSONAL_ID.toString(), 
					personalId);
			return result;
		}
public JSONObject toJsonObject ( ) throws JSONException { JSONObject result = new JSONObject ( ) ; result . put ( UserPersonalColumnKey . FIRST_NAME . toString ( ) , firstName ) ; result . put ( UserPersonalColumnKey . LAST_NAME . toString ( ) , lastName ) ; result . put ( UserPersonalColumnKey . ORGANIZATION . toString ( ) , organization ) ; result . put ( UserPersonalColumnKey . PERSONAL_ID . toString ( ) , personalId ) ; return result ; }
Creates a JSONObject that represents this user.
Creates a JSONObject that represents this user .