This post explains marshalling a java object to json format and storing it to a file. This can be achieved with the help of ObjectMapper provided by jackson databind package. To explain with an example we will use the below pojo objects User public class User { private Name name; private String ssn; private String…… Continue reading Marshaling Java Object