This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes Dynamically Generate JSON Data. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Dynamically Generate JSON Data." Watch "Dynamically Generate JSON Data." New topic
Author

Dynamically Generate JSON Data.

zohaib khan
Greenhorn

Joined: Apr 13, 2009
Posts: 22
Hi,

I want to generate following JSON data dynamically using JSP and database.

following is the table and json structure data.



Any Solution?


- Thanks
Zohaib.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42364
    
  64
I assume that retrieving the data from the DB presents no problem. For creating JSON I'd use one of the available libraries like http://www.stringtree.org/stringtree-json.html or http://www.json.org/java/.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamically Generate JSON Data.