---
title: "JSON Data formatting should be done in which layer in Spring MVC framework"  
description: "JSON Data formatting should be done in which layer in Spring MVC framework"  
author: "Anonymous User"  
published: 2013-06-20  
updated: 2013-06-20  
canonical: https://www.mindstick.com/forum/1254/json-data-formatting-should-be-done-in-which-layer-in-spring-mvc-framework  
category: "json"  
tags: ["json"]  
reading_time: 1 minute  

---

# JSON Data formatting should be done in which layer in Spring MVC framework

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances),\
\
In [MVC](https://www.mindstick.com/forum/155803/define-cache-profile-in-mvc) [framework](https://www.mindstick.com/forum/34615/software-framework-vs-library) which [layer](https://answers.mindstick.com/qa/116083/give-two-examples-of-protocols-that-operate-at-the-application-layer) is suppose to [format](https://www.mindstick.com/forum/162083/how-to-convert-ost-files-into-pst-format)/covert [data](https://www.mindstick.com/articles/13050/salesforce-aiming-to-dominate-predictive-analytics-with-data-science) to JSON. Should it be done in Web layer or in [Service](https://www.mindstick.com/articles/105963/online-thesis-writing-service-for-college-kids-with-disabilities) layer? In my opinion it should be done in Web layer ([Spring](https://www.mindstick.com/forum/33718/spring-social-facebook-oauth-getting-not-all-data-with-api-v2-5) [Controllers](https://www.mindstick.com/forum/155773/how-asynchronous-controllers-work-in-asp-dot-net-mvc)) but some peole suggest to do that in Service layer. What are other [people](https://www.mindstick.com/news/2295/more-people-need-to-monitor-this-crucial-metric-for-heart-health) think about it?\

## Replies

### Reply by AVADHESH PATEL

Yes you are right.\
I also think that JSON manipulation should be done on Web layer, doing this will make your code more manageable.


---

Original Source: https://www.mindstick.com/forum/1254/json-data-formatting-should-be-done-in-which-layer-in-spring-mvc-framework

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
