public static void main(String... args) throws IOException {
    GitHub github =
        Feign.builder()
            .decoder(JacksonIteratorDecoder.create())
            .doNotCloseAfterDecode()
            .target(GitHub.class, "https://api.github.com");

    System.out.println("Let's fetch and print a list of the contributors to this library.");
    Iterator<Contributor> contributors = github.contributors("OpenFeign", "feign");
    try {
      while (contributors.hasNext()) {
        Contributor contributor = contributors.next();
        System.out.println(contributor.login + " (" + contributor.contributions + ")");
      }
    } finally {
      ((Closeable) contributors).close();
    }
  }
adapted from {@code com.example.retrofit.GitHubClient}
jackson/src/test/java/feign/jackson/examples/GitHubIteratorExample.java