Re: [whatwg/xhr] Consider adding toJSON to FormData (#84)

Thanks a lot, @annevk !

Next. If the reading process is async, should we return a promise? This behavior adds extra complexity... something like

```javascript
form.addEventListener('submit', e => {
  var fd = new FormData(e.target);

  fd.toJSON().then(obj => {
    // here obj has the form's content?
  });

});
```

Not sure if this looks intuitively.
I'll read about Blob/File and then give you some examples...

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/84#issuecomment-240349419

Received on Wednesday, 17 August 2016 08:39:21 UTC