Consider the following class:
private static class Widget {
@JsonProperty
private String id = "ID";
@JsonIgnore
private String jsonIgnored = "JSON_IGNORED";
private String noAnnotation = "NO_ANNOTATION";
}
If I serialize this using Jackson, I will end up with this string:
{"id":"ID"}
What is the difference between a property with @JsonIgnore
and one with no annotation?