Add UrlWithJSONExtension middleware