I am using a typed DocumentQuery to read documents from the Azure DocumentDb collection.
from f in client.CreateDocumentQuery<MyModel>(Collection.SelfLink) select f
Since I cannot find a way in which I can configure the neccesarry custom json converter, it throws this exception:
Failed to create an instance of type AbstractObject. A type is an interface or abstract class and cannot be created.
Usually you do something like this to make it work:
var settings = new JsonSerializerSettings();
settings.Converters.Add(new MyAbstractConverter());
client.SerializerSettings = settings;
DocumentClient has no SerializerSettings settings. So the question is, how can I tell the DocumentDB client that it should use its own converter when deserializing json data for my model?
dixus