handle list of hosts returned as json array
handle jq_n (number of list elements to be returned)