We are looking to use JSON.NET.net on a cross platform solution.
Given the structure of the data we are passing around, we need to include the type details with the information that is serialized.
We can get the type information into the stream by using the TypeNameHandling property of JsonSerializer, but we end up with a lot more information being sent over the wire.
What we would like to do is do something similar to what the MS JavaScriptSerializer does i.e. provider a JavaScriptTypeResolver which we then replace out long type names with something a lot shorter.
Is this possible to achieve with JSON.NET?
I think you should take a look at JSON.NET “Contract Resolvers“. I quote: