I have a resultset as a result of a MySQL query using the JDBC connector. So my job is to convert the resultset into a JSON format. So that I can send it to the clientside a
Use jsonlib for Java. Iterate over the result set and add the properties you want as JSONObject objects from jsonlib.
JSONObject