macek/jquery-serialize-object

Parse numbers and booleans?

th3fallen opened this issue · 2 comments

Would it be possible to add a flag or default functionality that would convert true false 1 0 to true or false respectively and numbers to stay as a number?

I saw a old issue with it in the 3.0 feature branch just wanted to see if that was still the case.

macek commented

There is no type casting in 2.x with the exception of <input type="checkbox"> elements.

3.x is still back-burnered for the time-being as I'm working on other time-critical projects.

#98 offers a way to parse based on provided options.