We want to use JSON.NET.net in a cross-platform solution.
Given the structure of the data that we go through, we need to include type data with information that is serialized.
We can get the type information into the stream using the TypeNameHandling property for the JsonSerializer, but we get much more information sent through the wiring.
What we would like to do is to do something similar to what MS JavaScriptSerializer does, that is, the JavaScriptTypeResolver provider, which then replaces the long type names with something much shorter.
Can this be done using JSON.NET?
source share