I’m using ServiceStack.Text’s JSON serialization stuff for one of my projects. However, when deserializing data I would like the ability to override the part that creates the instance of the object. I would like it to use my IoC container to create the instance of any new objects needed during deserialization. Any ideas on how to do this?
I’m using ServiceStack.Text’s JSON serialization stuff for one of my projects. However, when deserializing
Share
In ServiceStack’s JSON Serializer there are hooks on:
and
That should let you do this.