Add JSON verify middleware.