Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

select query , Need to store objects in a JSONArray

 
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
Marshal
Posts: 34095
337
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