Serialize form data to Json (deep structure).
npm install form-serialize-json This script solved the problem of hierarchy name of Input in C#.
serialises a form to an object. The use is the same with $.fn.serialize and $.fn.serializeArray, or serializeJson(array).
The keys are the form element names(split with dot) and the value is the the form element
value. If multiple form elements have the same name with different values,
the value will replace the origin value.
|Feature|Node.js|Chrome|Edge|Firefox|Internet Explorer|Opera|Safari|
| -- | -- | -- | -- | -- | -- | -- | -- |
|Basic support|Yes|5|Yes|4|9|10.5|5|
|Feature|Android webview|Chrome for Android|Edge mobile|Firefox for Android|IE mobile|Opera Android|iOS Safari|
| -- | -- | -- | -- | -- | -- | -- | -- |
|Basic support|Yes|Yes|Yes|4|Yes|Yes|Yes|
shell
$ npm install form-serialize-json
`
$3
`html
// serializeJson(array)