[Zope] [ANN] jsonserver 1.1.pre2 released (AJAX)

Balazs Ree ree at ree.hu
Thu Dec 22 02:45:38 EST 2005


Jsonserver provides an alternative way of AJAX client-server
communication on Zope.

Jsonserver enables Zope to act as a JSON-RPC server. JSON-RPC is
an XML-RPC replacement. It is built on JSON, a javascript based
data interchange format. JSON has bindings for more languages. On
the client side, the "jsolait" javascript library contains both
JSON and JSON-RPC support, besides other utilities.

Characteristics of this approach are:

- You can bind methods in javascript to Zope methods, python
  scripts or page templates and call them up directly from
  javascript in a synchronous or asynchronous way (RPC).

- Both the call parameters and the return value can be strings,
  unicode strings, instances of any other builtin python data
  type, or structures built with the combination of tuples, lists
  and dicts. These get marshalled transparently with JSON.

- As a consequence there is no necessity to use XML to pass
  around structured data, you can just structure your data with
  python and pass it directly (but of course you also have the
  possibility to pass around XML).
  
- Passing of both positional and keyword parameters allows to
  call up page templates with request parameters.

- Full client compatibility with the Zope3 version of jsonserver,
  i.e.  the same client code will be able to run on Zope2 and
  Zope3 without a change.

This version, 1.1.pre2 is a pre-release and considered to be
beta. It works pretty well but there are things that might need
to change before the final release.

It can be installed on Zope 2.7 and 2.8 (for 2.7 you need to
install Five). It is compatible with Plone and can be used from
it without restrictions.

More information, a simple demo product and download at
http://www.zope.org/Members/ree/jsonserver2 . Please report bugs
directly to me.

-- 
Balazs Ree, email: ree at ree.hu



More information about the Zope mailing list