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

people write json directly, so it does make sense to have a .json() method instead of having to manually call JSON.parse(). You could argue that if we have JSON.parse then we dont need to accept json and everyone should just call JSON.stringify but then people will end up doing that for the text record instead of using proper opaque record.

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

Received on Friday, 11 October 2019 11:55:51 UTC