JamesNK/Newtonsoft.Json — pull request #19 by chaoaretasty (2012-05-14 10:08:28+00:00)
Title: Added a ContractResolver for serializing against an interface

Something that seems to crop up every now and then is serializing to an interface, I made this for our use and figured it would be of benefit to others.

The intention is for use in APIs where often you may want only a subset of an object made available and to provide a cleaner alternative to anonymous objects or copying properties to a concrete class.

Needs to be passed the type of both the original object and the interface to use as a contract.