java/srcPubnubApi/com/pubnub/api/PubnubUtilCore.java
/**
     * Parse Json, change json string to string
     *
     * @param obj
     *            JSON data in string format
     *
     * @return JSONArray or JSONObject or String
     */
Parse Json, change json string to string
@param obj
JSON data in string format


Parse Json change json string to string @param obj JSON data in string format
static Object parseJSON(Object obj) {
        if (obj instanceof String) {
            if (((String) obj).endsWith("\"") && ((String) obj).startsWith("\""))
                obj = ((String) obj).substring(1, ((String) obj).length() -1);
        }
        return obj;
    }
static Object parseJSON ( Object obj ) { if ( obj instanceof String ) { if ( ( ( String ) obj ) . endsWith ( "\"" ) && ( ( String ) obj ) . startsWith ( "\"" ) ) obj = ( ( String ) obj ) . substring ( 1 , ( ( String ) obj ) . length ( ) - 1 ) ; } return obj ; }
Parse Json, change json string to string
 @param obj
            JSON data in string format
Parse Json change json string to string @param obj JSON data in string format