This API is develop by me.It convert ResultSet to JSON String..By invoking a static Method present in Converter CLASS.(download RStoJSON.jar from here)
ResultSet rs=ps.executeQuery();
String jsonString=com.learners.converter.Converter.rsTojson(rs);
Use Code As
String jsonString=com.learners.converter.Converter.rsTojson(rs);
Use Code As
Set jar file in lib Folder
It will give Out put As
(its a web service output on postman)
No comments:
Post a Comment