views:

94

answers:

3

I'd like to send a JSON rpc to a remote web-server. The client-side of my application must be completely javascript. The choice of the client library should be independant from the json-rpc implementation on the server-side. I don't need json-over-http. Simple json objects over tcp/ip is enough for my use-case. Thanks

A: 

Since you are connecting to a remote web server, you will have to use HTTP.

You can use XMLHttpRequest for this from Javascript or you can use a library such as jquery that packages it up in an easier to use API. Many Javascript libraries support this functionality.

Jamey Hicks
A: 

You could try jsolait. AFAIR it has support for JsonRPC 1.0 over sockets.

Groleo
I'll look at the specs, but when you say 'over sockets' you mean that no web-server is required ? So it's JsonRPC over tcp, and not over http?
Valerio Schiavoni
A: 

I would use Ajax with jQuery. Dead simple.

JQuery Post Documention

Scott Radcliff