On Wed, Jan 25, 2012 at 5:27 AM, Jeffrey Van Voorst
<[email protected]> wrote:
> If I am going to clean this up, what should I use for the jsonrpc part

 try:
     import simplejson as json
 except ImportError:
     import jason

 that's it.

> (I am assuming this is used by the cgi + mod_python scripts)?  I have
> been using jsonrpclib (https://github.com/joshmarshall/jsonrpclib/),

 no you're on the wrong track.  that's client-side.  this is server-side.


> but I found an annoyance, the request params value is always an array.
>  Yes, even if it is an array that contains one dictionary.  I see no
> reason for this as the specs for the proposed JSON-RPC 2.0 allow it to
> be a structured value (at this time think python array or python
> dict).
>
> Anyhow, jsonrpclib is basically subclassing xmlrpclib and substituting
> json writing/parsing for xml writing/parsing.
>
> Personally, I yajl for my server side stuff (Python and C), jsonrpclib
> to test the server, and javascript XHR to send the request via
> browser.  (although yajl has a annoying dependency chain -- I forget
> what exactly -- like git + ruby or ....).
>
> Also, what about chucking mod_python and using mod_wsgi for the
> example code?  I don't recommend using mod_python.

 no because there are actually about 4 ways that that code can be
used.  see the CGI example code as well which is in the same
subdirectory.

 l.

Reply via email to