fluid-api/src/main/java/com/fluidbpm/program/api/vo/form/Collaboration.java
@Override
    public JSONObject toJsonObject() throws JSONException
    {
        JSONObject returnVal = super.toJsonObject();

        //Form Container...
        if(this.getFormContainer() != null) {
            returnVal.put(JSONMapping.FORM_CONTAINER,
                    this.getFormContainer().toJsonObject());
        }

        //Message...
        if(this.getMessage() != null) {
            returnVal.put(JSONMapping.MESSAGE, this.getMessage());
        }

        //Date Read...
        if(this.getDateRead() != null) {
            returnVal.put(JSONMapping.DATE_READ,
                    this.getDateAsLongFromJson(this.getDateRead()));
        }

        //Date Sent...
        if(this.getDateSent() != null) {
            returnVal.put(JSONMapping.DATE_SENT,
                    this.getDateAsLongFromJson(this.getDateSent()));
        }

        //From User...
        if(this.getFromUser() != null) {
            returnVal.put(
                    JSONMapping.FROM_USER,
                    this.getFromUser().toJsonObject());
        }

        //To User...
        if(this.getToUser() != null) {
            returnVal.put(
                    JSONMapping.TO_USER,
                    this.getToUser().toJsonObject());
        }

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

        //Form Container...
        if(this.getFormContainer() != null) {
            returnVal.put(JSONMapping.FORM_CONTAINER,
                    this.getFormContainer().toJsonObject());
        }

        //Message...
        if(this.getMessage() != null) {
            returnVal.put(JSONMapping.MESSAGE, this.getMessage());
        }

        //Date Read...
        if(this.getDateRead() != null) {
            returnVal.put(JSONMapping.DATE_READ,
                    this.getDateAsLongFromJson(this.getDateRead()));
        }

        //Date Sent...
        if(this.getDateSent() != null) {
            returnVal.put(JSONMapping.DATE_SENT,
                    this.getDateAsLongFromJson(this.getDateSent()));
        }

        //From User...
        if(this.getFromUser() != null) {
            returnVal.put(
                    JSONMapping.FROM_USER,
                    this.getFromUser().toJsonObject());
        }

        //To User...
        if(this.getToUser() != null) {
            returnVal.put(
                    JSONMapping.TO_USER,
                    this.getToUser().toJsonObject());
        }

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

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

@see ABaseFluidJSONObject#toJsonObject()