added json converter for hosts