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

        JSONObject returnVal = super.toJsonObject();

        //Rule...
        if(this.getRule() != null)
        {
            returnVal.put(JSONMapping.RULE, this.getRule());
        }

        //View Name...
        if(this.getViewName() != null)
        {
            returnVal.put(JSONMapping.VIEW_NAME, this.getViewName());
        }

        //View Group Name...
        if(this.getViewGroupName() != null)
        {
            returnVal.put(JSONMapping.VIEW_GROUP_NAME, this.getViewGroupName());
        }

        //View Flow Name...
        if(this.getViewGroupName() != null)
        {
            returnVal.put(JSONMapping.VIEW_FLOW_NAME, this.getViewFlowName());
        }

        //View Step Name...
        if(this.getViewGroupName() != null)
        {
            returnVal.put(JSONMapping.VIEW_STEP_NAME, this.getViewStepName());
        }

        //View Priority...
        if(this.getViewPriority() != null)
        {
            returnVal.put(JSONMapping.VIEW_PRIORITY, this.getViewPriority());
        }

        //View Type...
        if(this.getViewType() != null)
        {
            returnVal.put(JSONMapping.VIEW_TYPE, this.getViewType());
        }

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

        JSONObject returnVal = super.toJsonObject();

        //Rule...
        if(this.getRule() != null)
        {
            returnVal.put(JSONMapping.RULE, this.getRule());
        }

        //View Name...
        if(this.getViewName() != null)
        {
            returnVal.put(JSONMapping.VIEW_NAME, this.getViewName());
        }

        //View Group Name...
        if(this.getViewGroupName() != null)
        {
            returnVal.put(JSONMapping.VIEW_GROUP_NAME, this.getViewGroupName());
        }

        //View Flow Name...
        if(this.getViewGroupName() != null)
        {
            returnVal.put(JSONMapping.VIEW_FLOW_NAME, this.getViewFlowName());
        }

        //View Step Name...
        if(this.getViewGroupName() != null)
        {
            returnVal.put(JSONMapping.VIEW_STEP_NAME, this.getViewStepName());
        }

        //View Priority...
        if(this.getViewPriority() != null)
        {
            returnVal.put(JSONMapping.VIEW_PRIORITY, this.getViewPriority());
        }

        //View Type...
        if(this.getViewType() != null)
        {
            returnVal.put(JSONMapping.VIEW_TYPE, this.getViewType());
        }

        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()