uniq array of hostnames for clean and json