我需要把黄色的物体放到客户身上,但出于明显的原因,我需要排除电子邮件和密码等领域。
I know play uses GSON (by google?) and you can pass a serializer class when calling the renderJSON() method. However I m rendering different types of classes at once using a container class:
public class JSONContainer {
public List<User> userList;
public List<Toy> toyList;
}
For each class it s possible to make a Serializer class implementing GSON s JsonSerializer<...>
method. But if I render a JSONContainer object like this: renderJSON(container)
how can I pass the serializer classes to the rendering method?
Or is there maybe an easier/better way to do this?