This project has moved. For the latest updates, please go here.

Serialize only some properties of an object

Nov 18, 2011 at 2:22 PM

Hi all!

I'm using JSON.NET with Windows Phone. I have a service that returns me a JSON object that I successfully deserialize in a Profile object. Then, I must send this object back to the service, but in this communication I must include only some properties of the object. In other words, the service returns me a Profile JSON object with some properties, and I must send back the same object, but in which some properties are removed.

Can I specify what properties to include in serialization and deserialization separately?

Thanks in advance.