This example uses the gson library to map java objects to json strings. The (de)serializers are generic, but they don't always need to be !
Serializer
Code
public class GsonSerializer<T> implements Serializer<T> {
private Gson gson = new GsonBuilder().create();
@Over...