[jQuery] serializeArray() problem

[jQuery] serializeArray() problem


Hello,
I quote from docs.jquery.com:
"serializeArray(): Serializes all forms and form elements
(like the .serialize() method) but returns a JSON data structure for
you to work with."
I'm trying to use this method to serialize a form to a JSON string,
however is not working.
Instead of: {'Name':'yuiy','hdnValue':'ringo'}
it creates a querystring: txtName=yuiy&hdnValue=ringo
If i set processData : false, then i get an error on line 27 of
jquery.min.js:
"s.data.match is not a function
jQuery.readyList.push(function()
{return ....url,s.async,s.username,s.password);else"
I'm using jQuery 1.2.6.