I have a model say under
public class Device { public int DeviceId { get; set; } public string DeviceTokenIds { get; set; } p
If you are using Newtonsoft.Json
Newtonsoft.Json
you can hide the properties like this:
public class Product { [JsonIgnore] public string internalID { get; set; }; public string sku { get; set; }; public string productName { get; set; }; }
and your serialized response will not include the internalID property.