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

Sure!

If I understood correctly, we want to rename `toJSON()`, `toText()` and `toArrayBuffer()` respectively to `json()`, `text()`, `arrayBuffer()`.

Now, if we're adding `json()` just for the sake of consistency with Push, I'd argue we should add `blob()` but since it doesn't make sense.I'd vote for removing `json()` and simply keep `text()` and `arrayBuffer()`.
If people complain that `JSON.parse()` is too hard during the upcoming Origin Trial, how about adding it back later then?



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

Received on Friday, 11 October 2019 11:06:06 UTC