I have done it differently:
var strData = prev.getResponseDataAsString(); //This is a string delimited with character return
var listData = strData.split('\n');
Then you can do all sort of things like from your list data, such as
NOTE:It works with SELECT query on JDBC request.