Package gozerbot :: Package contrib :: Package simplejson :: Module encoder
[hide private]
[frames] | no frames]

Module encoder

source code

Implementation of JSONEncoder

Classes [hide private]
  JSONEncoder
Extensible JSON <http://json.org> encoder for Python data structures.
Functions [hide private]
 
floatstr(o, allow_nan=True) source code
 
encode_basestring(s)
Return a JSON representation of a Python string
source code
 
encode_basestring_ascii(s) source code
Variables [hide private]
  _speedups = None
  ESCAPE = re.compile(r'[\x00-\x1f\\"\x08\f\n\r\t]')
  ESCAPE_ASCII = re.compile(r'([\\"/]|[^ -~])')
  ESCAPE_DCT = {'\x00': '\\u0000', '\x01': '\\u0001', '\x02': '\...
  INFINITY = inf
  _need_utf8 = False
  i = 31
Variables Details [hide private]

ESCAPE_DCT

Value:
{'\x00': '\\u0000',
 '\x01': '\\u0001',
 '\x02': '\\u0002',
 '\x03': '\\u0003',
 '\x04': '\\u0004',
 '\x05': '\\u0005',
 '\x06': '\\u0006',
 '\x07': '\\u0007',
...