• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(160)  |  Call(40)  |  Derive(92)  |  Import(28)
Extensible JSON <http://json.org> encoder for Python data structures.

Supports the following objects and types by default:

+-------------------+---------------+
| Python            | JSON          |
+===================+===============+
| dict              | object        |
+-------------------+---------------+
| list, tuple       | array         |
+-------------------+---------------+
| str, unicode      | string        |
+-------------------+---------------+
| int, long, float  | number        |
+-------------------+---------------+
| True              | true          |
+-------------------+---------------+
| False             | false         |
+-------------------+---------------+
| None              | null          |
+-------------------+---------------+

To extend this to recognize other objects, subclass and implement a
``.default()`` method with another method that returns a serializable
object for ``o`` if possible, otherwise it should call the superclass
implementation (to raise ``TypeError``).

src/p/y/pyjamas-desktop-HEAD/pyjamas-webkit/examples/jsonrpc/public/services/jsonrpc/__init__.py   pyjamas-desktop(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

src/p/y/pyjamas-desktop-HEAD/pyjamas-web/examples/jsonrpc/public/services/jsonrpc/__init__.py   pyjamas-desktop(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

src/p/y/pyjamas-desktop-HEAD/pyjamas-khtml/examples/jsonrpc/public/services/jsonrpc/__init__.py   pyjamas-desktop(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

src/d/i/diksel-HEAD/trunk/thirdparty/pyjamasdev/examples/jsonrpc/public/services/jsonrpc/__init__.py   diksel(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

src/d/i/diksel-HEAD/trunk/thirdparty/pyjamasdev/examples/infohierarchy/public/services/jsonrpc/__init__.py   diksel(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

src/p/y/pyjamas-HEAD/src/examples/jsonrpc/public/services/jsonrpc/__init__.py   pyjamas(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

src/d/i/diksel-HEAD/thirdparty/pyjamasdev/examples/jsonrpc/public/services/jsonrpc/__init__.py   diksel(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

src/d/i/diksel-HEAD/thirdparty/pyjamasdev/examples/infohierarchy/public/services/jsonrpc/__init__.py   diksel(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

src/p/y/pyjamas-0.7/examples/jsonrpc/public/services/jsonrpc/__init__.py   Pyjamas(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

src/p/y/pyjamas-0.7/examples/infohierarchy/public/services/jsonrpc/__init__.py   Pyjamas(Download)
 
from errors import *
 
from simplejson import JSONDecoder, JSONEncoder
 
 
class JSONRPCEncoder(JSONEncoder):

  1 | 2 | 3  Next