fluid-api/src/main/java/com/fluidbpm/program/api/vo/role/RoleToJobView.java
@Override
    public JSONObject toJsonObject() throws JSONException {

        JSONObject returnVal = super.toJsonObject();

        //Job View...
        if(this.getJobView() != null)
        {
            returnVal.put(JSONMapping.JOB_VIEW,
                    this.getJobView().toJsonObject());
        }

        //Role...
        if(this.getRole() != null)
        {
            returnVal.put(JSONMapping.ROLE,
                    this.getRole().toJsonObject());
        }

        return returnVal;
    }
@Override
    public JSONObject toJsonObject() throws JSONException {

        JSONObject returnVal = super.toJsonObject();

        //Job View...
        if(this.getJobView() != null)
        {
            returnVal.put(JSONMapping.JOB_VIEW,
                    this.getJobView().toJsonObject());
        }

        //Role...
        if(this.getRole() != null)
        {
            returnVal.put(JSONMapping.ROLE,
                    this.getRole().toJsonObject());
        }

        return returnVal;
    }
Conversion to {@code JSONObject} from Java Object.

@return {@code JSONObject} representation of {@code RoleToJobView}
@throws JSONException If there is a problem with the JSON Body.

@see ABaseFluidJSONObject#toJsonObject()