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

Fix README: Add custom types "number" #108

Closed nukopy closed 4 years ago

nukopy commented 4 years ago

Hi, thanks for good plugin, @marioizquierdo! I found the forgotten contents in README about "Custom Types". I added "number" in "customTypes".

Thanks.

marioizquierdo commented 4 years ago

The example was correct. The "number" type was not included because it is not meant to be overriden. The example is trying to show that customTypes doesn't need to provide all the types, the defaultTypes are still present.

But thanks for the note, I will update the README to clarify this. Cheers