code: public void setDependencyFilter(ObjectNode filter) {
          if (filter == null) {
              return;
          }
          final JsonNode patterns = filter.get("patterns");
          if (patterns != null && patterns.isArray()) {
              List<String> ids = new ArrayList<>();
              for (JsonNode exclusion : patterns) {
                  ids.add(exclusion.asText());
              }
              setDependencyFilter(new ExcludesArtifactFilter(ids));
          }
      }
docs: A setter method made especially for Jackson. Artifact's dependency filter is used for the exclusion list. As
  the filter cannot be created directly by Jackson, we do the job directly here.
  
  @param filter the Json representation of the filter