I have a class that contains a List of DynamicObjects. I have a unit test that confirms that the Newtonsoft Json Serializer/Deserializer handles this correctly. However, the d
Looked for this before, i don't think it's possible. Kinda like it's not possible to add an XML serializer :-(
It is possible in Web Api though
You have to create a custom DataWriter, for example NewtonsoftJsonDataWriter:ODataWriter.
Have a look there : tutorial-sample-odatalib-custom-payload-format
In the example it's a Csv writer which is implemented, I think you'll then be able to override its methods WriteStart, WriteHeader, WriteEntry and WriteEnd with a simple Json.Convert().