Re: [heycam/webidl] Consider simplifying serializers (#188)

> Fyi a case where only specific attributes are serialized: http://w3c.github.io/webrtc-pc/#idl-def-rtcicecandidate (not saying the reasons behind it necessarily are valid).

Yeah, that would still be possible but require adding a `toJSON` operation, a dictionary and some prose, e.g.:

```webidl
interface RTCIceCandidate {
  // members
  RTCIceCandidateJSON toJSON();
};

dictionary RTCIceCandidateJSON {
  DOMString candidate;
  DOMString? sdpMid;
  unsigned short? sdpMLineIndex;
  DOMString ufrag;
};
```



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/188#issuecomment-268674218

Received on Wednesday, 21 December 2016 23:37:12 UTC