using Newtonsoft.Json; namespace BlueWest.Data { public class DataObject { public override string ToString() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }