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

        //Sum Decimals...
        if(this.getSumDecimals() != null)
        {
            returnVal.put(JSONMapping.SUM_DECIMALS, this.getSumDecimals());
        }

        //Table Field Records...
        if(this.getTableRecords() != null && !this.getTableRecords().isEmpty())
        {
            JSONArray assoFormsArr = new JSONArray();
            for(Form toAdd :this.getTableRecords())
            {
                assoFormsArr.put(toAdd.toJsonObject());
            }

            returnVal.put(JSONMapping.TABLE_RECORDS, assoFormsArr);
        }

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

        //Sum Decimals...
        if(this.getSumDecimals() != null)
        {
            returnVal.put(JSONMapping.SUM_DECIMALS, this.getSumDecimals());
        }

        //Table Field Records...
        if(this.getTableRecords() != null && !this.getTableRecords().isEmpty())
        {
            JSONArray assoFormsArr = new JSONArray();
            for(Form toAdd :this.getTableRecords())
            {
                assoFormsArr.put(toAdd.toJsonObject());
            }

            returnVal.put(JSONMapping.TABLE_RECORDS, assoFormsArr);
        }

        return returnVal;
    }
@ Override public JSONObject toJsonObject ( ) throws JSONException { JSONObject returnVal = super . toJsonObject ( ) ; //Sum Decimals... if ( this . getSumDecimals ( ) != null ) { returnVal . put ( JSONMapping . SUM_DECIMALS , this . getSumDecimals ( ) ) ; } //Table Field Records... if ( this . getTableRecords ( ) != null && ! this . getTableRecords ( ) . isEmpty ( ) ) { JSONArray assoFormsArr = new JSONArray ( ) ; for ( Form toAdd : this . getTableRecords ( ) ) { assoFormsArr . put ( toAdd . toJsonObject ( ) ) ; } returnVal . put ( JSONMapping . TABLE_RECORDS , assoFormsArr ) ; } return returnVal ; }
Conversion to {@code JSONObject} from Java Object.

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

@see ABaseFluidJSONObject#toJsonObject()
Conversion to { @code JSONObject } from Java Object .