Added middleware to always set the response to content-type json