When i am hitting the rest url in postman I am not getting the response but in debugger it is showing that list policyList has 5 items.
List policyList = repository.getPolicyName(field);//fetches objects list(each object has just one string int it) return ok(Message.messageFromObject(Consts.SUCCESS,new Gson().toJson(policyList)));
Neither converting policyList of objects to json is working or by directly passing like below is working. return ok(Message.messageFromObject(Consts.SUCCESS,policyList));
Can you suggest what to pass in return so that I can get a valid response. I am using play framework.