fixing xml and adding json representation for host_meta