note: 'myapp.newapp.json_rpc_views' IS NOT A FUNCTION, BUT A MODULE, that contains exposed JSON-RPC functions.

Optional Django settings

JSONRPC_URLPATTERNS_NAME:

Default value: 'jsonrpc_urlpatterns'.
Name of the variable in 'urls.py',that contains JSON-RPC URL patterns.
URL pattern must have Django syntax, but they must contain
MODULES NAMES, NOT FUNCTION NAMES as second element in tuple for patterns function.

JSONRPC_SERIALIZER:

Default value: JSONSerializer class - thin wrapper over django.utils.simplejson.
Name of the JSON serializer class, that must have methods 'serialize' and 'deserialize'

Example

Other

Written by alx3 (alx3apps(at)gmail(dot)com).
You can use this code under the terms of BSD licence (like Django project).
PS: I would appreciate if someone create project for this middleware in public svn (e.g. googlecode).