toJSON

The toJSON() method of the RTCSessionDescription interface returns a JSON-serializable plain object representing the RTCSessionDescription object.

MDN Reference