list_hosts_json action: Create an object for each host.