1

I'm using jQuery and the CloudKit/Tokyo Cabinet backend from an HTML page. All calls are REST/JSON so the server needs JSON data posted. How do I turn the form into JSON and post it? JQuery seems to have a type for JSON return values but not to send JSON.

Any ideas? IS it different if it's cross domain?

Alex

alxross
  • 121
  • 1
  • 1
  • 6

2 Answers2

1

You can use: https://github.com/douglascrockford/JSON-js

See also: Serializing to JSON in jQuery

Community
  • 1
  • 1
miku
  • 181,842
  • 47
  • 306
  • 310
0

You could use the toJSON plugin mentioned on the jQuery plugin page.

jammus
  • 2,540
  • 23
  • 28