I would like to know how can we serialize the following using Jackson.
I have the following class:
public Class School{
private Map<Teacher,List<Student>> exampleMap;
//Getter and Setter
}
Teacher & Student are two other entities.
If I now want to serialize this into JSON using Jackson, how should I proceed?