This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Creating JSON Response in this Format" Watch "Creating JSON Response in this Format" New topic
Author

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, http://www.json.org/ lists a number of other available json libraries for java.


OCPJP
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: http://aspose.com/file-tools
 
subject: Creating JSON Response in this Format
 
Similar Threads
How To Send Data Back To JSP Page?
JSON response into HTML
Calling one servlet from another servlet
Need your help in constrcting a JSON Response using a StringBuffer
JSP Ajax append html table problem