object-formdata-convertor
A module which converts formdata to json, form to json, json to formdata.
Installation
npm install object-formdata-convertor
Usage
var manipulator = ;
;
FormData to JSON
var formData = ;var jsonObject = manipulatorconsole;
Form to JSON
var formDom = document;var jsonObject = manipulator;console;
JSON to FormData
var jsonObj = "a" : 1 "b" : 2;var formData = manipulator;console;
FORM to FormData
var formDom = document;var formdata = manipulator;console;
To get value for a key from form data
var formdata = formdata;var value = manipulator;console;
API
var jsonObject = manipulator; var formData = manipulator; var formData = manipulator; var value = ;