Home > DeveloperSection > Forums > JSON Data formatting should be done in which layer in Spring MVC framework
Chintoo Semi

Total Post:135

Posted on    June-20-2013 3:53 AM


 1 Reply(s)
 1115  View(s)
Rate this:
Hi Expert,

In MVC framework which layer is suppose to format/covert data to JSON. Should it be done in Web layer or in Service layer? In my opinion it should be done in Web layer (Spring Controllers) but some peole suggest to do that in Service layer. What are other people think about it?


Total Post:604

Posted on    June-20-2013 7:55 AM

Yes you are right.

I also think that JSON manipulation should be done on Web layer, doing this will make your code more manageable.

Don't want to miss updates? Please click the below button!

Follow MindStick