In the event of non-matching of variable name and key of JSON document, the existing code will return a null value. The benefits of having a small description of @JsonProperty annotation are two folds. Firstly, it introduces the user with @JsonProperty annotation and secondly, it subtly informs the user to use the exact same variable name as the key in the JSON document.
In the event of non-matching of variable name and key of JSON document, the existing code will return a null value. The benefits of having a small description of @JsonProperty annotation are two folds. Firstly, it introduces the user with @JsonProperty annotation and secondly, it subtly informs the user to use the exact same variable name as the key in the JSON document.