Jackson tips

I'm the author of Data Engineering Design Patterns (O'Reilly), a Databricks MVP, and a freelance data engineer specializing in Apache Spark and Databricks. I help teams move from working pipelines to resilient architectures.
I'm currently accepting new projects for Jun 2026. Whether you need a 2-day architectural audit, a hands-on lead for a complex data engineering problem, or a workshop let's discuss your project here.

How to customize returned properties for DTOs ?

Special annotation, @JsonView exists for that. Imagine that you have a PersonDto class which contains two properties: name and age. You want to show name every time but age only for one endpoint. To e...

Continue Reading β†’

How to fix 'no suitable constructor' exception ?

org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type This exception is provoked by the impossibility to create object from provided input. For example it can oc...

Continue Reading β†’