def set_json_body(self, data: Any) -> None:
        """Set a JSON-friendly object as the body of the request.

        :param data: A JSON serializable object
        :type data: dict
        """
        if data is None:
            self.data = None
        else:
            self.data = json.dumps(data)
            self.headers["Content-Length"] = str(len(self.data))
        self.files = None
Set a JSON-friendly object as the body of the request.

        :param data: A JSON serializable object
        :type data: dict
        
Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/azure/core/pipeline/transport/_base.py