Twitch api in java?

ah ok i use this and i have this code

    public static Twitch_Stream getStream(String channelname) {
        try {
            String json = API.readJsonFromUrl("https://api.twitch.tv/kraken/streams?channel=" + channelname + "");

            Twitch_Stream stream = new Twitch_Stream();
            if (json.equalsIgnoreCase("[]")) {
                stream.setOnline(false);
                return stream;
            }
            JsonArray jb = gson.fromJson(json, JsonArray.class);
            JsonObject jo = (JsonObject) jb.get(0);
            stream.setOnline(true);
            stream.load(jo);
            return stream;
        } catch (Exception error) {
            error.printStackTrace();
        }

        return null;

    }

but i have error in :
JsonObject jo = (JsonObject) jb.get(0);
this line how to repair this? is my first time with json;/