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

        JSONObject returnVal = super.toJsonObject();

        //Can Create...
        if(this.isCanCreate() != null)
        {
            returnVal.put(JSONMapping.CAN_CREATE,
                    this.isCanCreate().booleanValue());
        }

        //Attachment can View...
        if(this.isAttachmentsView() != null)
        {
            returnVal.put(JSONMapping.ATTACHMENTS_VIEW,
                    this.isAttachmentsView().booleanValue());
        }

        //Attachment can Create or Modify...
        if(this.isAttachmentsCreateUpdate() != null)
        {
            returnVal.put(JSONMapping.ATTACHMENTS_CREATE_UPDATE,
                    this.isAttachmentsCreateUpdate().booleanValue());
        }

        //Form Definition...
        if(this.getFormDefinition() != null)
        {
            returnVal.put(JSONMapping.FORM_DEFINITION,
                    this.getFormDefinition().toJsonObject());
        }

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

        JSONObject returnVal = super.toJsonObject();

        //Can Create...
        if(this.isCanCreate() != null)
        {
            returnVal.put(JSONMapping.CAN_CREATE,
                    this.isCanCreate().booleanValue());
        }

        //Attachment can View...
        if(this.isAttachmentsView() != null)
        {
            returnVal.put(JSONMapping.ATTACHMENTS_VIEW,
                    this.isAttachmentsView().booleanValue());
        }

        //Attachment can Create or Modify...
        if(this.isAttachmentsCreateUpdate() != null)
        {
            returnVal.put(JSONMapping.ATTACHMENTS_CREATE_UPDATE,
                    this.isAttachmentsCreateUpdate().booleanValue());
        }

        //Form Definition...
        if(this.getFormDefinition() != null)
        {
            returnVal.put(JSONMapping.FORM_DEFINITION,
                    this.getFormDefinition().toJsonObject());
        }

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

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

@see ABaseFluidJSONObject#toJsonObject()