Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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
Marshal
Posts: 37180
515
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!