PUT the provided data as json to the specified path

        See :meth:`request` for additional details.

def put_json(self, uri, data, **kwargs):
        """PUT the provided data as json to the specified path

        See :meth:`request` for additional details.
        """
        encoded_data = json.dumps(data)
        kwargs.setdefault("headers", {}).update({
            "Content-Type": "application/json",  # tell server we are sending json
        })
        return self.put(uri, data=encoded_data, **kwargs)