Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes servlet json 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 "servlet json" Watch "servlet json" New topic
Author

servlet json

Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi,
How I will create a JSON object in servlet for using it as response.

Regards
Miku
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60048
    
  65

There are any number of JSON formatters: Gson, Jackson, etc. Do a google search and pick one that suits your needs.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Thank you for the reply.
 
wood burning stoves
 
subject: servlet json
 
Similar Threads
Build Array in Servlet And Pass Back to Ajax Callback
jquery, ajax, servlet and null data in callback function
How can i pass the JSONObject to the servlet
Creating a transparent page overlay
Populate Table Rows With Data from AJAX