Hi,
I don't normally like to second guess posters' designs, but I do wonder why you need to send a JSON object to a server.
Anyway, I'll assume that there's a good reason. You can find a JSON stringifier
here to convert a JSON object into a string, that you can then put into a hidden field for sending to a server.
Alternatively, you could parse the JSON object and turn it into a GET (or POST) query, rather then sending it as text.
Most server side scripting languages have JSON parsers available; just google "JSON Parser {language name here}". The same libraries usually provide JSON creation code.
Can I ask why you're sending JSON
to the server?