Можно ли написать json deserializer в gson, который сначала вызывает поведение по умолчанию, а затем я могу выполнить некоторую пост-обработку на моем объекте. Например:
public class FooDeserializer implements JsonDeserializer<Foo> {
public Foo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
Foo foo = context.deserialize(json, typeOfT);//Standard deserialization call?????
foo.doSomething();
return foo();
}
}
Я использую gson 1.3 (я не могу использовать какую-либо другую версию, так как я могу использовать только версии в корпоративной репозиторий)
спасибо