Re: [web-nfc] What's the value of `toJSON()`? (#366)

Right now we need to expose a union of properties and getters across all record types. 
That is confusing as well: for instance Generic Sensors didn't dump all possible properties into a single object for a reason.

Even now scripts need to check for `recordType`, there is no change there. But we'd get the self-documenting clarity on what getters are supposed to work etc, and record creation would become better defined as well.

Anyway it would be a big change.


-- 
GitHub Notification of comment by zolkis
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/366#issuecomment-542545660 using your GitHub account

Received on Wednesday, 16 October 2019 06:39:38 UTC