Here is my code implementing a hashmap and an AJAX call:
Map<String, List<?>> map=new HashMap<>();
List<?> minimumParameters=new ArrayList<>();
map.put("min", minimumParameters);
map.put("max", maximumParameters);
// Performing an AJAX call to retrieve response data
$.ajax({
url:'./getMinMaxAvgDataByMtrNo/'+meterNum+'/'+frmDate+'/'+tDate,
type:'GET',
success:function(response){
if(response.length == 0 || response.length == null ){
bootbox.alert("No data for this meter number "+meterNum);
}
else{
alert(response);
}
}
});
Next step is how to iterate through the response in order to extract those lists.