且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Servicestack中使用自定义JSON序列化程序?

更新时间:2023-02-12 08:42:32

关于 ServiceStack的JSON序列化器中的其他挂钩>还有JsConfig<T>.RawSerializeFnJsConfig<T>.RawDeserializeFn应该可以满足您的需求.

In terms of other hooks in ServiceStack's JSON Serializers there's also JsConfig<T>.RawSerializeFn and JsConfig<T>.RawDeserializeFn which should do what you need.

否则,如果您只想进行一些前/后处理,则还有JsConfig<T>.OnSerializingFnJsConfig<T>.OnDeserializedFn自定义钩子.

Otherwise if you just want to some pre/post processing there's also the JsConfig<T>.OnSerializingFn and JsConfig<T>.OnDeserializedFn custom hooks.