How To Convert FormData To JSON Object

added by JavaScript Kicks
9/29/2017 8:27:39 AM

603 Views

Recently, whilst working on a project I needed to take HTML FormData and then convert it to JSON to be sent off to an API. By default the FormData object does not work in the way you would want it to for JSON. Using the for..of syntax introduced in ECMAScript 2015, we can access the ...


0 comments