serializeArray()function is used to serialize a set of form elements and encode the contents of the form into a single JavaScript array .
serializeArray()Functions are commonly used to serialize the contents of a form into a JSON object, so that it is encoded in a JSON-formatted string.
The function encapsulates each form control that is available for submission as an object that has the name and Value property, the name of the form control, and the Value property. These object objects are then encapsulated as an array and returned.
The function does not serialize form controls that do not need to be submitted, which is consistent with the regular form submission behavior. For example: a form control that is not in a <form> tag is not committed, a form control without a name attribute is not committed, a form control with the disabled property is not committed, and a form control that is not selected is not committed.
var tmp = {};
$ (' #serverManagementInfo '). Serializearray (). Map (function (x) {
Tmp[x.name] = X.value;
});
JSON data reorganization