Add response object middleware for consistency.
Serialize resource data into JSON.