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

        JSONObject returnVal = super.toJsonObject();

        //User Query...
        if(this.getUserQuery() != null)
        {
            returnVal.put(JSONMapping.USER_QUERY,
                    this.getUserQuery().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();

        //User Query...
        if(this.getUserQuery() != null)
        {
            returnVal.put(JSONMapping.USER_QUERY,
                    this.getUserQuery().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 RoleToUserQuery}
@throws JSONException If there is a problem with the JSON Body.

@see ABaseFluidJSONObject#toJsonObject()