Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to convert FormData (HTML5 object) to JSON

var object = {};
formData.forEach(function(value, key){
    object[key] = value;
});
var json = JSON.stringify(object);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #convert #FormData #JSON
ADD COMMENT
Topic
Name
9+2 =