This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

select query , Need to store objects in a JSONArray  RSS feed

 
PavanPL KalyanK
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i storer data in a JSONArray ??
I am performing a DataBase select query .
while(rs.next())
{
// How can i put Objects in a JSONArray
}

And what will be the best approach for using JSON to put data in a JSONArray .

Please suggest. your ideas.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36396
453
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can build it yourself - it is just text - or use a json java library
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!