Posted on In this tutorial, we show you how to output JSON data in Spring MVC framework. Technologies used : Spring 3.2.2.RELEASE Jackson 1.9.10 JDK 1.6 Eclipse 3.6 Maven 3 P.S In Spring 3, to output JSON data, just puts Jackson library in the project classpath. 1. Project Dependencies pom.xml 2. Model A simple POJO, later output this object as formatted JSON data. package com.mkyong.common.model; public class Shop { String name; String staffName[]; //getter and setter methods } 3.
Read full article from Spring 3 MVC and JSON example
No comments:
Post a Comment