@JsonIgnore
@JsonIgnore — a Jackson annotation used to exclude a field or method from JSON serialization or deserialization. 🧩 Purpose Prevents sensitive or unnecessary data from appearing in JSON responses or being read from incoming JSON. Example: public class User { private String username; @JsonIgnore private String password; // getters & setters } public class…
