Package com.openmeet.shared.helpers
Class JSONResponse
java.lang.Object
com.openmeet.shared.helpers.JSONResponse
Class for building a JSON Response.
-
Constructor Details
-
JSONResponse
public JSONResponse()
-
-
Method Details
-
getResponse
Returns the response.- Returns:
- the response.
-
addPair
Adds a pair to the response.- Parameters:
key- The key of the pair.value- The value of the pair.
-
getValue
Returns the value of the key.- Parameters:
key- The JSON object key.- Returns:
- The value of the key.
-
clear
public void clear()Clears the response. -
toString
Returns the response as a JSON string.
-