Trees | Indices | Help |
|
---|
|
|
|||
StringifyingDecoder Casts all unicode objects as strings. |
|||
JavaScript A simple class that represents a JavaScript literal that should not be JSON encoded. |
|||
JavaScriptRegex A simple class that represents a JavaScript Regex literal that should not be JSON encoded. |
|||
JavaScriptEncoder A JavaScript encoder based on JSON. |
|
|||
|
|||
str, func |
|
||
|
|||
|
|
Serialize If >>> value = (dict(a=1L), u"123", 123) >>> print json(value) [{"a": 1}, "123", 123] >>> @json ... def f(): ... return value ... >>> print f() [{"a": 1}, "123", 123]
|
A JavaScript encoder based on JSON. It encodes like normal JSON except it passes JavaScript objects un-encoded. |
Create the Python object represented by the JSON string
>>> jsonstr = '[{"a": 1}, "123", 123]' >>> print unjson(jsonstr) [{'a': 1}, '123', 123]
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 14 12:01:22 2010 | http://epydoc.sourceforge.net |