Get wrong json URL when send it to my class
<p>I have a problem storing JSON url inside my class. I mean thai i have retrieved json data, get  thumbnail array(2 thumbnails of different quality inside it) from it and put it into my "VideoEntry" class where I wrap  a certain thumbnail. In the moment of wrapping I should have normal thumbnail link but I receive something like <code>http:\/\/i.ytimg.com\/vi\/V7DFfqTxrnY\/default.jpg</code>  beside <a href="http://i.ytimg.com/vi/V7DFfqTxrnY/default.jpg" rel="nofollow">http://i.ytimg.com/vi/V7DFfqTxrnY/default.jpg</a> . I cannot understand how it happens. Maybe, someone could find my error.</p>

<p>My code:</p>

<pre><code>JSONObject playlistsWrapper = (JSONObject) new JSONTokener(json).nextValue();
        JSONArray playlists = playlistsWrapper.getJSONObject("data").getJSONArray("items");
        for (int i = 0; i &lt; playlists.length(); i++) {
            JSONObject playlist = playlists.getJSONObject(i);
            Log.e("Pla: ", playlist.getJSONObject("video").getJSONObject("thumbnail").getString("sqDefault")); // There is everything OK
            VideoEntry entry = new VideoEntry(playlist);
            entry.wrapID(context);
            entry.wrapTitle(context);
            entry.wrapThumbURL(context);
            playlistsList.add(entry);
            Log.e("PlaylistsList: ", playlistsList.get(i).getThumbURL());  // There are retrieve onlu part of URL - unique thumbnail id beside the whole URL
</code></pre>

<p>My class:</p>

<pre><code> public static class VideoEntry {

    private final JSONObject mItem;
    private String mTitle, mVideoID;
    private String mThumbURL;

    public VideoEntry(JSONObject item) {
        mItem = item;
    }

    public String getVideoID() {
        return mThumbURL;
    }

    public String getTitle() {
        return mTitle;
    }

    public String getThumbURL() {
        return mVideoID;
    }

    void wrapID(Context context) throws JSONException {
        if (mVideoID == null) {
        mVideoID = mItem.getJSONObject("video").getString("id");
        }
    }

    void wrapTitle(Context context) throws JSONException {
        if (mTitle == null) {
        mTitle = mItem.getJSONObject("video").getString("title");
        }
    }

    void wrapThumbURL(Context context) throws JSONException {
        if (mThumbURL == null) {
        mThumbURL =  mItem.getJSONObject("video").getJSONObject("thumbnail").getString("sqDefault").toString();
        Log.e("Thumb: ",mItem.getJSONObject("video").getJSONObject("thumbnail").toString()); // Here I get wrong URL - http:\/\/i.ytimg.com\/vi\/V7DFfqTxrnY\/default.jpg
        }
    }

    }
</code></pre>

<p>How is possible to fix it and why it happen?</p>
