code: private String parseFirstArtistId(String json) {
      try {
        JsonNode jsonNode = this.objectMapper.readTree(json);
        for (JsonNode node : jsonNode.get("artists").get("items")) {
          return node.get("id").asText();
        }
      } catch (IOException e) {
        throw new RuntimeException("Failed to parse JSON", e);
      }
      return null;
    }
docs: Parses the first artist id from a JSON response from a
  <a href="https://developer.spotify.com/web-api/search-item/">Spotify API search query</a>.
  
  @param json The json response
  @return The id of the first artist in the response. null if response was empty.