Skip to content

Instantly share code, notes, and snippets.

@whaley
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save whaley/8977296 to your computer and use it in GitHub Desktop.

Select an option

Save whaley/8977296 to your computer and use it in GitHub Desktop.
@JsonAnySetter
@SuppressWarnings("unused") //called by jackson
private void setUnknownProperty(String key, JsonNode value) {
extraProperties.put(key, value);
}
@JsonAnyGetter
@SuppressWarnings("unused") //called by Jackson
private Map<String, JsonNode> getUnknownProperty() {
return extraProperties;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment