Re: [webrtc-pc] Invalid JSON in examples

While the quotes are required in JSON, they're not in regular JavaScript, and the examples either call `JSON.stringify` which take care of all the syntactic changes needed for JSON, or would not be expected a priori to be shared via JSON (e.g. `getUserMedia` parameter, or configuration options for `RTCPeerConnection`.

All that to say - this is a cosmetic decision, there isn't one wrong per se. From my arbirtrary perspective, using quote-less property names for JavaScript objects increase readability. (i.e. I would prefer that we do not revert - but I don't feel very strongly)

-- 
GitHub Notification of comment by dontcallmedom
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1543#issuecomment-323804083 using your GitHub account

Received on Monday, 21 August 2017 17:26:25 UTC