IpcServiceFramework icon indicating copy to clipboard operation
IpcServiceFramework copied to clipboard

About searilization

Open SpawnProd opened this issue 5 years ago • 3 comments

As we know, newtonjson become standard for asp.net, but since .net core 3 we get System.Text.Json, how about to remove newtonjson dependency?

Some features (like JsonConstructor for example) will be supported only in 5.0, but we can do all stuff and without it.

System.Text.Json is part of .net core for now and even for asp.net core newtonjson is just option.

As solution we can separate all serialization stuff and realise system.text.json, newtonjson, and many other alternatives, if somebody need them.

SpawnProd avatar May 08 '20 11:05 SpawnProd

Indeed, I was thinking about migrating to System.Text.Json. I have a little bit doubt about the polymorphic serialization but it worth a try.

jacqueskang avatar May 08 '20 12:05 jacqueskang

I have a little bit doubt about the polymorphic serialization but it worth a try.

The only way - custom JsonConverter. In simple (but with huge amount of objects) examples System.Json.Text is faster.

SpawnProd avatar May 08 '20 18:05 SpawnProd

I'm moving this to next milestone due of lack of time. Sorry

jacqueskang avatar Jun 12 '20 13:06 jacqueskang