File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Dynamically Generate JSON Data." Watch "Dynamically Generate JSON Data." New topic

Dynamically Generate JSON Data.

zohaib khan

Joined: Apr 13, 2009
Posts: 22

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

following is the table and json structure data.

Any Solution?

- Thanks
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I assume that retrieving the data from the DB presents no problem. For creating JSON I'd use one of the available libraries like or
I agree. Here's the link:
subject: Dynamically Generate JSON Data.
It's not a secret anymore!