When I started to play with MVC, having CGI::Application as a tool,
I used this approach: Any runmode was my controller, I made another class-model which interacted with DB and returned raw data - array of hashrefs. I made another class-view which got the raw_data and reorganized that into some structure, that was turned to JSON string. After all, controller got that stuff from view and returned it back to web client. So view did all the job to rearrange model-given raw data and turn it json. Okay. Now I am trying to get understanding of Catalyst. Here I have to restructure raw data somewhere else, stash it, and forward all that mess to Catalyst::View::JSON. The question: WHERE I should rearrange/restructurize raw data if there are no any additional calculations planned, but simply preparing data for some jQuery widget in the end. I doubt it must be done in model or controller. What you think?