The impetus behind this is to replicate iron-form's handy serializeForm method with extra options.
Method could have:
Options on how to serialize form elements. For example, multi-select can be either a text string of values comma-delimited, or a JSON array of values. Perhaps type hinting on form elements?
Optionally filter blank form elements. Many form elements (including Vaadin elements) have "pseudo" form fields for prefix and suffix that need to be filtered out. Additionally, some developers may not want empty properties to be sent.
Serialize into an object for POST/PATCH/PUT bodies
Serialize into URLEncoded string for GET/DELETE requests, perhaps via URLSearchParams
The impetus behind this is to replicate
iron-form
's handyserializeForm
method with extra options. Method could have: