Allow API objects to return non-array results