Request: refactor deserialize into reusable function so that it returns an object
Closed this issue · 2 comments
sfmskywalker commented
I have a use case where I need to be able to deserialize a string (produced from $(form.serialize)) without updating a form. This way I can post the data using an AJAX call (and the server will be able to do proper model binding).
It would be great if you could make "deserialize" work as a static method on jQuery.
kflorence commented
@sfmskywalker perhaps you want something like jQuery.deparam?
sfmskywalker commented
Yes! That's exactly what I was looking for. Thanks!