Add host attributes and resource json annotation