Jqueryui.info - How to send JSON object from a html page to a REST web service which consumes application/json ?

17th of March 2013 0

How to send JSON object from a html page to a REST web service which consumes application/json ?

How it can be done from a simple HTML page without using Jquery or Jersey/Jackson api’s?

for example:
I want to send the json object having id and name as a parametre.

Best answer:

Answer by Glass
http://stackoverflow.com/questions/8937414/how-to-pass-a-json-object-using-form-data-to-a-rest-service-using-js

To turn your json object to a string without using jquery? You can either use a third party or write your own parser, something like:

http://stackoverflow.com/questions/3593046/jquery-json-to-string

Add your own answer in the comments!

Share it!

Was it good for you to?

Sponsors

Support for the site!

No sponsors at the moment.



Your opinion matters. Add it below.


Tip: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent comments

Categories



Copyright jqueryui.info since 2010. All rights reserved. Design and the Absolute Theme by Tommie Hansen.