Wrapped legacy and aggregation results into a single object for returning as JSON