geeky · java

Jackson default conversion behavior (java json library spring uses)

So I complain. I think it could be done better but I didn’t do any research as why this is the default behavior of Jackson so you can educate me the whole reason behind this design. Since Jackson is the json library SpringMVC has picked, I’m using it. By default, Jackson will convert any public… Continue reading Jackson default conversion behavior (java json library spring uses)

geeky · java

Jackson Ignore Property/Convenience Method

Here’s something I learned about Jackson and you may run into it. What gets serialized by default? Properties of an object are initially determined by process called auto-detection: all member methods and fields are checked to find: “Getter” methods: all no-argument public member methods which return a value, and conform to naming convention of “getXxx”… Continue reading Jackson Ignore Property/Convenience Method