Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically Generate JSON Data.  RSS feed

 
zohaib khan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!