Form serializer capable of handling nested data and arrays. Based largely from Ben Alman's De-param function from the JQuery BBQ plugin, but altered to have no jQuery dependencies, and convert FormData into javascript objects, instead of query parameters.
npm install deep-serialize-formForm serializer capable of handling nested data and arrays. Based largely from
Ben Alman's De-param function from the JQuery BBQ plugin, but altered to
have no jQuery dependencies, and convert FormData into javascript objects,
instead of query parameters.
``bash`
$ yarn add deep-serialize-form
Modular Javascript:
`javascript`
> import deepSerializeForm from 'deep-serialize-form'
Include Directly:
`html`
>
Usage:
`javascript``
> const form = document.getElementById('form');
> const data = deepSerializeForm(form);
> console.log(data);