sPFShared/src/main/java/it/polimi/spf/shared/model/SPFActionIntent.java
@Override
    public String toJSON() {
        JSONObject o = new JSONObject();
        try {
            o.put(KEY_TYPE, mType);
            o.put(KEY_ACTION, mAction);
            return o.toString();
        } catch (JSONException e) {
            Log.e(TAG, "Error marshalling action:", e);
            return "";
        }
    }
@Override
    public String toJSON() {
        JSONObject o = new JSONObject();
        try {
            o.put(KEY_TYPE, mType);
            o.put(KEY_ACTION, mAction);
            return o.toString();
        } catch (JSONException e) {
            Log.e(TAG, "Error marshalling action:", e);
            return "";
        }
    }
@ Override public String toJSON ( ) { JSONObject o = new JSONObject ( ) ; try { o . put ( KEY_TYPE , mType ) ; o . put ( KEY_ACTION , mAction ) ; return o . toString ( ) ; } catch ( JSONException e ) { Log . e ( TAG , "Error marshalling action:" , e ) ; return "" ; } }
/*
(non-Javadoc)

@see it.polimi.spf.framework.local.SPFAction#toJSON()
/ * ( non - Javadoc )