Tagged articles
4 articles
Page 1 of 1
Java Companion
Java Companion
Nov 8, 2025 · Backend Development

How Jackson Views Let One DTO Replace Many and End DTO Explosion

The article explains how Jackson Views can consolidate multiple DTO classes into a single DTO by using view interfaces and @JsonView annotations, dramatically reducing code duplication, simplifying maintenance, and providing flexible field selection for different API scenarios.

DTOJacksonJava
0 likes · 11 min read
How Jackson Views Let One DTO Replace Many and End DTO Explosion
Code Ape Tech Column
Code Ape Tech Column
Apr 9, 2025 · Backend Development

Using @JsonView in Spring to Control JSON Serialization of Fields

This article explains how the Jackson @JsonView annotation can be used in Spring back‑end projects to selectively serialize object fields, reduce bandwidth, improve security, and handle nested associations by defining view interfaces and applying them on entity fields and controller methods.

JacksonJavaREST
0 likes · 8 min read
Using @JsonView in Spring to Control JSON Serialization of Fields