code: private ArrayList<Album> parseAlbumData(String json) {
      ArrayList<Album> albums = new ArrayList<>();
      try {
        JsonNode jsonNode = this.objectMapper.readTree(json);
        for (JsonNode albumNode : jsonNode.get("albums")) {
          JsonNode artistsNode = albumNode.get("artists");
          // Exclude albums with 0 artists
          if (artistsNode.size() >= 1) {
            // Only keeping the first artist for simplicity
            Artist artist = new Artist(artistsNode.get(0).get("name").asText());
            Album album = new Album(albumNode.get("name").asText(), artist);
            albums.add(album);
          }
        }
      } catch (IOException e) {
        throw new RuntimeException("Failed to parse JSON", e);
      }
      return albums;
    }
docs: Parses an album response from a
  <a href="https://developer.spotify.com/web-api/album-endpoints/">Spotify API album query</a>.
  
  @param json The json response
  @return A list of albums with artist information