public String [ ] execute ( ) throws IOException , SpotifyWebApiException { List < String > genres = new Gson ( ) . fromJson ( new JsonParser ( ) . parse ( getJson ( ) ) . getAsJsonObject ( ) . get ( "genres" ) . getAsJsonArray ( ) , new TypeToken < List < String > > ( ) { } . getType ( ) ) ; return genres . toArray ( new String [ 0 ] ) ; }
Get all available genre seeds .