jquery - How to get a serialized array from a client form to a server using the GM_xmlhttpRequest -
I used JQuery.serializeArray () on a form to create an array of objects on the GreaseMonkey app:
<{name: a value: 1}, {name: b value: 2}, {name: c value: 3}, {name: d value: 4}, {name: e value: 5}]
I need to use GM_xmlhttpRequest to return these areas to the server side. What is the best way to return these areas?
JSON.stringify (obj)
ex>
to change my serialized field to a Jason string. Then I should be able to serve that string as a data argument in the GM_xmlhttpRequest POST request on the server.
Comments
Post a Comment