.NET SDK 1.3 Extensions is it possible to configure JSON Serializer


the MVC Tutorial suggests using the client.GetJson and client.StoreJson extension methods.

I Need to serialize POCO’s with protected setters in order to maintain incapsulation.
I Have written a ContractResolver based on CamelCasePropertyNamesContractResolver. Which does the job. But Can I Inject this into the CouchbaseClient somehow ? Or do I need to write my own Extension methods that takes a serializer as parameter?

cjjohansen -

The JsonSerializationSettings property is public static, so you can set it to a custom one:

Hopefully this helps,


Thx. For the reply. I Should have seen that my self :smile: