I'm trying to get the form data from my form returned as a simple map Object {a: "b", c: "d"}
I know I can .serialize()
and .serializeArray()
and then do it myself. Isn't there a jQuery function or something vailable for that?
I'm trying to get the form data from my form returned as a simple map Object {a: "b", c: "d"}
I know I can .serialize()
and .serializeArray()
and then do it myself. Isn't there a jQuery function or something vailable for that?
There is no straight conversion form formdata
to JSON
. But here is a way to solve the problem:
http://blog.erdemagaoglu.com/post/1231059494/serialize-form-data-to-json-with-jquery