Adding Json Client Middleware