Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 19
    because the first returns a string, exactly like what you'd get if you submitted the form with a GET method, and the second gives you a array of objects, each with a name value pair. I want that if i have a field named "email" i get an object that will allow me to retrieve that value with obj.email. With serializeArray(), i'd have to do something like obj[indexOfElement].value Commented Jul 26, 2009 at 14:05
  • The best library to read and set a form data as JSON is FormDataJson. This JSON is not flat as FormData is! The returned data is like at this answer. Though this is not jQuery solution, this is very small standalone library.. Commented Aug 25, 2024 at 2:02