0

How to add all results from pojo to json object.

import org.json.simple.JSONArray;
import org.json.simple.JSONObject;  

while (srs.next()) {
    j obj = new pojo();
    ONObject json_o = new JSONObject();

    j.setFullname(srs.getString("full_name"));
    j.setEmailid(srs.getString("email_id"));

    // what to do here ?
}
Suraj Roy
  • 51
  • 2
  • 12

0 Answers0