fluid-api/src/main/java/com/fluidbpm/program/api/vo/ABaseFluidJSONObject.java
@XmlTransient
    public JSONObject toJsonObject() throws JSONException
    {
        JSONObject returnVal = new JSONObject();

        //Id...
        if(this.getId() != null)
        {
            returnVal.put(JSONMapping.ID,this.getId());
        }

        //Service Ticket...
        if(this.getServiceTicket() != null)
        {
            returnVal.put(JSONMapping.SERVICE_TICKET, this.getServiceTicket());
        }
        
        //Echo...
        if(this.getEcho() != null)
        {
            returnVal.put(JSONMapping.ECHO, this.getEcho());
        }

        return returnVal;
    }
@XmlTransient
    public JSONObject toJsonObject() throws JSONException
    {
        JSONObject returnVal = new JSONObject();

        //Id...
        if(this.getId() != null)
        {
            returnVal.put(JSONMapping.ID,this.getId());
        }

        //Service Ticket...
        if(this.getServiceTicket() != null)
        {
            returnVal.put(JSONMapping.SERVICE_TICKET, this.getServiceTicket());
        }
        
        //Echo...
        if(this.getEcho() != null)
        {
            returnVal.put(JSONMapping.ECHO, this.getEcho());
        }

        return returnVal;
    }
@ XmlTransient public JSONObject toJsonObject ( ) throws JSONException { JSONObject returnVal = new JSONObject ( ) ; //Id... if ( this . getId ( ) != null ) { returnVal . put ( JSONMapping . ID , this . getId ( ) ) ; } //Service Ticket... if ( this . getServiceTicket ( ) != null ) { returnVal . put ( JSONMapping . SERVICE_TICKET , this . getServiceTicket ( ) ) ; } //Echo... if ( this . getEcho ( ) != null ) { returnVal . put ( JSONMapping . ECHO , this . getEcho ( ) ) ; } return returnVal ; }
<p>
Base {@code toJsonObject} that creates a {@code JSONObject}
with the Id and ServiceTicket set.
</p>

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

@see org.json.JSONObject
<p > Base { @code toJsonObject } that creates a { @code JSONObject } with the Id and ServiceTicket set . < / p >