class JsonSerializer extends BaseSerializer {

    @Override
    protected byte[] serialize(Object data) throws IOException {
        return gson.toJson(data).getBytes(Charsets.UTF_8);
    }

    @Inject public  JsonSerializer(Gson gson);

}