ServiceStack/ServiceStack.Text — pull request #187 by awr (2012-09-11 18:28:59+00:00)
Title: Serialization hooks

I'm not sure if this is the best approach here, so any feedback is much appreciated :)

What I'm trying to accomplish is the ability to have hooks at the time of de/serialization; what I don't want to do is take over responsibility for the object's de/serialization, but rather to affect what happens in some way.

An alternative approach would be to leverage the RawSerializeFn approach, and somehow use the standard implementation for serialize (but I couldn't find a good way to get at the standard serialize approach as a consumer).

-Andrew