If your goal is simply to output the data stored in the object's properties using a human-readable format, I prefer to simply serialize the object into JSON format.
using System.Web.Script.Serialization;
//...
string output = new JavaScriptSerializer().Serialize(myObject);