brandonroy
New Member
I'm trying to return a beautified json serialization of an object and output it in ASP.NET using Response.Write, this is my code. Nevermind the obvious crime in not validating user input, this is just a silly little test app.\[code\]try{var customer = this.sc.GetCustomer(Convert.ToInt32(TextBox1.Text));var json = JsonConvert.SerializeObject(customer, Formatting.Indented);Response.Write(json);}catch (Exception ex){ Response.Write("An error occurred: " + ex.Message);}\[/code\]It appears that Formatting.Indented has no effect. What am I doing wrong?