I have a class set up as follows:
public class Foo
{
public string string1 { get; set; }
public string string2 { get; set; }
public string string3
Adding to drzaus answer:
You can use the DefaultContractResolver he suggested .. just in its CreateProperty use property.Ignored = true; instead of property.ShouldSerialize, then its good either when you pass the JsonSerializerSettings to the DeserializeObject function or the SerializeObject function.