Ticket #11002 (closed feature: patchwelcome)
Add serializeObject method to core
|Reported by:||ajpiano||Owned by:|
Description (last modified by rwaldron) (diff)
It's probably more useful into have a method in core for serializing a form directly to an object, instead of an array of objects with name and value keys. Luckily, Ben Alman has a very small implementation that leverages the existence of serializeArray to give us just such a method.
My experience tells me this is a relatively common use-case: I've used it on a number of projects, and I've directed numerous people toward it as well in the last year or two. Not only is it beneficial when developing single-page apps with Backbone or the like, it's considerably simpler than existing options (in core) for users who need to submit a form via ajax, but also want to augment the data with some properties beforehand.
While most plugins should stay just that - plugins - I think that this feature is common enough, lean enough, and low-level enough for us to be able to offer it in core.
comment:17 Changed 11 months ago by dmethvin
- Status changed from open to closed
- Resolution set to patchwelcome