aspose file tools*
The moose likes Other Open Source Projects and the fly likes select query , Need to  store objects in a JSONArray Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "select query , Need to  store objects in a JSONArray" Watch "select query , Need to  store objects in a JSONArray" New topic
Author

select query , Need to store objects in a JSONArray

PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

You can build it yourself - it is just text - or use a json java library


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: select query , Need to store objects in a JSONArray