This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez 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 Soft Skills this week in the Jobs Discussion 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