spring-guides / gs-consuming-rest

Consuming a RESTful Web Service :: Learn how to retrieve web page data with Spring's RestTemplate.
https://spring.io/guides/gs/consuming-rest/
Apache License 2.0
195 stars 287 forks source link

Added documentation for @JsonProperty annotation #24

Closed amriteya closed 7 years ago

amriteya commented 7 years ago

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.

gregturn commented 7 years ago

Thanks!