Code example for JSONObject

Methods: optString

0
    public String getSocialRegistrationToken() {
        return engageToken;
    } 
 
    public String getExistingAccountIdentityProvider() {
        return raw_response.optString("existing_provider");
    } 
 
    public String getConflictingIdentityProvider() {
        return conflictingIdentityProvider;
    } 
 
    public boolean isTwoStepRegFlowError() { 
        return code == RECORD_NOT_FOUND;
    } 
 
    public boolean isFormValidationError() { 
        return code == FORM_VALIDATION_ERROR;
    } 
 
    public JSONObject getPreregistrationRecord() {