Improves handling of various response data formats