I am trying to exclude an input by name (it is a hidden input holding my nonce)
The following question is almost what I am looking for:
How do I use jQuery
Solved ! You should use the given solution to exclude input field to be serialized. It's tested and solved my problem.
var formdata = $($("#myform")[0].elements).not("#field_id").serialize();
for multiple fields, you can use the class name to exclude them.
var formdata = $($("#myform")[0].elements).not(".class_name").serialize();