Custom attribute in serialized array

Custom attribute in serialized array

Is it possible to store other attributes than id and value of an input to a serialized array? 

Example:


html field:

<input type="text" name="NOT1NO" id="NOT1NO" value="1" custom="test" />

Using serializeArray creates array like

  1. [
  2.   {
  3.     name: NOT1NO
  4.     value: 1
  5.   },
Is it possible to include for instance the type attribute and custom attribute? Example:
  1. [
  2.   {
  3.     name: a
  4.     value: 1
  5.     type:text
  6.     custom:test
  7.   },