using System.ComponentModel;
public static void Main()
var settings = new JsonSerializerSettings();
settings.NullValueHandling = NullValueHandling.Ignore;
settings.DefaultValueHandling = DefaultValueHandling.Ignore;
Console.WriteLine(JsonConvert.SerializeObject(user, settings));
public string UserID { get; set; }
public string ssn { get; set; }
public string empID { get; set; }
public string schemaAgencyName { get; set; }
public string givenName { get; set; }
public string familyName { get; set; }
public string password { get; set; }