How to convert FormData (HTML5 object) to JSON code example
Example: How to convert FormData (HTML5 object) to JSON
var object = {};
formData.forEach(function(value, key){
object[key] = value;
});
var json = JSON.stringify(object);
var object = {};
formData.forEach(function(value, key){
object[key] = value;
});
var json = JSON.stringify(object);