I'm using a plugin to do a non-Ajax post. However, my array is just submitted with "[Object = object]", so I clearly need to do some parameterization on this array object. It's not as simple as putting it in a hash like:
{ 'myarray': myarray }
When you send the above to $.ajax(), it changes it to something like:
{ 'myarray': {'1': arrayfirsthash, '2': arraysecondhash, ...., '3': arraynhash } }
There must be some jQuery function that does that conversion. What is it, and can I call it publicly?
Thanks for any help you can offer.
UPDATE: To clarify my question, I'm actually looking to see how I can place this value in a form element so that it will be understood as a hash by the server. Even if I place the JSON-encoded hash in a form element, it still comes out as "Object" by the server. I need to somehow serialize this JSON hash so that it can be POSTED to my server.