Serializing a POJO to json using JACKSON