Add helper function for object responses