Lombok/Jackson - POJO for a json array
问题 I have a json array that I need to receive(de-serialize) from a server and send (serialize) to another server: Example: [ { "car-name": "string", "parts": [ "engine", "wheels" ] } ] I started with writing the following POJO to represent this Json array: import lombok.Builder; import lombok.Singular; import lombok.Value; @Builder @Value public class Car { private String carName; @Singular("part") private List<String> parts; } With this: I am able to build the object using Lombok as: Car myCar