If I\'m rendering a regular view in asp.net mvc the only domain object properties that show up in my page the ones I specifically write out. For example:
<
You could use the Newtonsoft library and [JsonIgnore] attribute for marking properties of your class you don't want to expose. There are other libraries (with possible different property ignore attribute name), I personally prefer this one since it's very flexible in JSON converter extensions etc + it can easily serialize anonymous objects.
public class Customer
{
...
[JsonIgnore]
public string UrlIn { get; set; }
public string FirstName { get; set; }
// following example of a converter, you could write your own as well
[JsonConverter(typeof(Newtonsoft.Json.Converters.JavaScriptDateTimeConverter))]
public DateTime Created { get { return _created; } }
}