File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Creating JSON Response in this Format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Creating JSON Response in this Format" Watch "Creating JSON Response in this Format" New topic

Creating JSON Response in this Format

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

Could you please tell me , how can i create a JSON response in this format inside my Servlet :

please help , thanks .

Save India From Corruption - Anna Hazare.
Pete Nelson
Ranch Hand

Joined: Aug 30, 2010
Posts: 147

The json-simple library might be just what you're looking for. Otherwise, lists a number of other available json libraries for java.

In preparing for battle I have always found that plans are useless, but planning is indispensable. -- Dwight D. Eisenhower
I agree. Here's the link:
subject: Creating JSON Response in this Format
Similar Threads
Calling one servlet from another servlet
JSP Ajax append html table problem
Need your help in constrcting a JSON Response using a StringBuffer
JSON response into HTML
How To Send Data Back To JSP Page?