Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The RTCSessionDescription.toJSON()
method generates a JSON description of the object. Both properties, type
and sdp
, are contained in the generated JSON.