Add the @JsonIgnoreProperties("fieldname")
annotation to your POJO.
Or you can use @JsonIgnore
before the name of the field you want to ignore while deserializing JSON. Example:
@JsonIgnore
@JsonProperty(value = "user_password")
public String getUserPassword() {
return userPassword;
}
More Related Contents:
- Strange Jackson exception being thrown when serializing Hibernate object
- Infinite Recursion with Jackson JSON and Hibernate JPA issue
- How to solve the “failed to lazily initialize a collection of role” Hibernate exception
- Mapping PostgreSQL JSON column to a Hibernate entity property
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- How to upload a file and JSON data in Postman?
- How to solve circular reference in json serializer caused by hibernate bidirectional mapping?
- Spring 3 MVC: one-to-many within a dynamic form (add/remove on create/update)
- No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
- JSON parameter in spring MVC controller
- Jackson/Hibernate, meta get methods and serialization
- Serializing enums with Jackson
- Jackson 2.0 with Spring 3.1
- In Spring MVC, how can I set the mime type header when using @ResponseBody
- How do I obtain the Jackson ObjectMapper in use by Spring 4.1?
- Change database schema during runtime based on logged in user
- Can Jackson be configured to trim leading/trailing whitespace from all string properties?
- GenerationType.AUTO vs GenerationType.IDENTITY in hibernate
- Manually call Spring Annotation Validation
- Returning JsonObject using @ResponseBody in SpringMVC
- Spring RequestMapping for controllers that produce and consume JSON
- Spring 3.0 making JSON response using jackson message converter
- HTTP Status 406. Spring MVC 4.0, jQuery, JSON
- Trying to use Spring Boot REST to Read JSON String from POST
- Why does Jackson 2 not recognize the first capital letter if the leading camel case word is only a single letter long?
- Spring MVC 4: “application/json” Content Type is not being set correctly
- Spring @RequestBody containing a list of different types (but same interface)
- Spring-MVC 406 Not Acceptable instead of JSON Response
- Spring MVC PATCH method: partial updates
- Spring MVC: How to modify json response sent from controller