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

Total Post:135

Points:947
Posted on    June-20-2013 3:53 AM

 JSON JSON 
Ratings:


 1 Reply(s)
 1096  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?


AVADHESH PATEL

Total Post:604

Points:4228
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