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

Thanks for all the feedback.

> Also how should we handle embedded records?

I think we should keep it simple and have Javascript objects only for embedded records. In other words:

```js
  const encoder = new TextEncoder();
  const records = [
    {
      recordType: "media",
      mediaType: "application/json",
      data: encoder.encode({ key1: "value1", key2: "value2" })
    }
  ];
```

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

Received on Tuesday, 15 October 2019 11:50:27 UTC