private ObjectMapper createObjectMapper ( ) { ObjectMapper mapper = new ObjectMapper ( ) ; mapper . registerModule ( new JodaModule ( ) ) ; mapper . configure ( SerializationFeature . INDENT_OUTPUT , true ) ; return mapper ; }
Create the ObjectMapper that deserializes entity to json String .