marioizquierdo / jquery.serializeJSON

Serialize an HTML Form to a JavaScript Object, supporting nested attributes and arrays.
MIT License
1.71k stars 433 forks source link

Remove all parse options to simplify the code #104

Closed marioizquierdo closed 4 years ago

marioizquierdo commented 4 years ago

Remove options:

Although they may seem convenient in some cases, they target all fields in a form, and can mistakenly parse values as types that are not appropriate (e.g. a "0" string that is not meant to have a numeric type). The :type definitions are more reliable and can target the right fields. They are equally customizable through custom type functions.

Removing these options is not backwards compatible, but it makes the plugin safer to use, easier to use, all using an even smaller size.