jquery-serialize-object icon indicating copy to clipboard operation
jquery-serialize-object copied to clipboard

Parse numbers and booleans?

Open th3fallen opened this issue 9 years ago • 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.

th3fallen avatar Dec 08 '15 20:12 th3fallen

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.

macek avatar Dec 08 '15 22:12 macek

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

Merwer avatar Dec 18 '16 14:12 Merwer