Thanks a lot i came up with exactly the same solution again ![]()
![]()
.
I wrote my code as
var responseArray = [];
while (rs.next()) {
// body+= "\n"+rs.getString(1)+"\t"+rs.getNString(2)+"\n"; responseArray.push({'headline':rs.getString(1),'id':rs.getString(2)}); $.response.contentType = 'application/json'; } $.response.setBody( JSON.stringify(responseArray)); $.response.status=$.net.http.OK;
}Output:
Thanks a lot you where very helpful.
Regards
Shashank K
