I\'m trying to return an error message via Json from ASP.NET MVC controller. I want to display carriage returns on the screen, so the error will look like:
Yea, you're defeating the purpose like @Hector said..
And if you want to return true JSON, maybe try returning a Json(Dictionary) instead of a Json(string).
Json(Dictionary)
Json(string)