Currently I am using the terrific Linq 2 Json.net (by newtonsoft), which is a very great simple tool to generate JSON result in programatic way.
But after finishing some projects, I stopped and rethink, should I generate the JSON result in the controller? I mean, in .net MVC framework, it DOES provided a JSONResult as one of the ViewResult. But should the controller bother how the result is generated? Or should it just "Provide" the data to view, and it should be the view's job to generate the necessary output (and formatting)?
One last thing, I also heard that using "ViewData" in controller might not be a good idea as controller is concerning too much on display/output issue, any better pattern or method could be use?