Comments on: Introducing Regular JSON Expressions http://laurentszyster.be/blog/introducing-regular-json-expressions/ Python on Peers Fri, 18 May 2012 14:30:11 +0000 http://wordpress.org/?v=1.5.1.3 by: Laurent Szyster http://laurentszyster.be/blog/introducing-regular-json-expressions/#comment-8460 Fri, 30 Mar 2007 17:53:25 +0000 http://laurentszyster.be/blog/introducing-regular-json-expressions/#comment-8460 Hi Didier, I'll translate: "Which container/server to use (in Java). Tomcat and an XML-RPC servlet." Yes, something like that. But JSON is different than XML-RPC in the sense that it does not define a protocol for procedure call. JSON is the simplest way practically possible to serialize and deserialize objects for the most numerous network peers: JavaScript applications running in web browsers. Yet nothing prevents you to apply it for RPC between HTTP peers. Using URL's and plain old HTML forms, send: GET /object/method?name=world&... HTTP/1.0 Or post a JSON body: POST /object/method Content-type: application/json; charset=UTF-8 {"name": "world" and expect the following response: HTTP/1.0 200 Ok Content-type: application/json; charset=UTF-8 {"name": "world", "hello": "Hello World!"} Finally, the fact that JSON is a web protocol does not mean that it cannot be applied to transfer objects between other network applications than a web browser or server. Hi Didier,

I’ll translate:

“Which container/server to use (in Java). Tomcat and an XML-RPC servlet.”

Yes, something like that.

But JSON is different than XML-RPC in the sense that it does not define a protocol for procedure call.

JSON is the simplest way practically possible to serialize and deserialize objects for the most numerous network peers: JavaScript applications running in web browsers.

Yet nothing prevents you to apply it for RPC between HTTP peers.

Using URL’s and plain old HTML forms, send:

GET /object/method?name=world&… HTTP/1.0

Or post a JSON body:

POST /object/method
Content-type: application/json; charset=UTF-8

{”name”: “world”

and expect the following response:

HTTP/1.0 200 Ok
Content-type: application/json; charset=UTF-8

{”name”: “world”, “hello”: “Hello World!”}

Finally, the fact that JSON is a web protocol does not mean that it cannot be applied to transfer objects between other network applications than a web browser or server.

]]>
by: dCroes http://laurentszyster.be/blog/introducing-regular-json-expressions/#comment-8416 Fri, 30 Mar 2007 13:54:53 +0000 http://laurentszyster.be/blog/introducing-regular-json-expressions/#comment-8416 Quel container/server utiliser? tomcat comme pour XML-RPC? Quel container/server utiliser?
tomcat comme pour XML-RPC?

]]>