jsonserver is a zope3 package for doing JSON-RPC. A good explanation about JSON (javascript object notation) is available at Wikipedia.
It's a transport, like XML-RPC. The difference is minor in practice. When JSON-RPC transports data, the code looks like a python dictionary. XML-RPC transport, on the other hand, looks like XML or html. jsonserver includes an installer for the JavaScript O Lait javascript library, which does XML-RPC, JSON-RPC, and several other wondrous things for web clients. So, jsonserver is a good way to enable XML-RPC on your web clients as well.
Most of the verbage that should go here is in the README, which covers installation, etc.
jsonserver includes my implementation of json reading and writing, which I call minjson, because it is minimal and fast. It's available here separately because it may be useful for using JSON in other python applications. This copy may be more up-to-date than the versions in the .tgz files below.
All files here are licensed under the ZPL2.1.
jsonserver is currently at 3.1.0 and 3.2.0. Because of infrastructure changes between Zope3 3.1 and 3.2, use the appropriate file below. Be sure to read the included README.txt file for specific installation requirements. Installation and usage are a little bit different for the two packages. Svn trunk needs zope3 trunk (3.2). The operating philosophy is that this "just works" for you with a minimum of fuss. Reports of successes are encouraged. They brighten my day.
A related implementation of JSON-RPC for zope2 is at http://www.zope.org/Members/ree/jsonserver2_pkg.
The latest development version for these items is at the z3labs subversion repository http://codespeak.net/svn/z3/jsonserver.
svn co http://codespeak.net/svn/z3/jsonserver/trunk jsonserver
will get you a checkout of the latest and greatest.
| Description | Link |
|---|---|
| minjson.py, a python script for reading and writing JSON | minjson.py |
| jsonserver-3.1.0, a zope-3.1 package for JSON-RPC | jsonserver-3.1.0.tgz |
| jsonserver-3.2.1, a zope-3.2 package for JSON-RPC | jsonserver-3.2.1.tgz |
| kwdemo, a quickie demo of jsonserver | kwdemo.tgz |