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

Module decoder

source code

Implementation of JSONDecoder

Classes [hide private]
  JSONDecoder
Simple JSON <http://json.org> decoder
Functions [hide private]
 
_floatconstants() source code
 
linecol(doc, pos) source code
 
errmsg(msg, doc, pos, end=None) source code
 
JSONConstant(match, context, c={'-Infinity': -inf, 'Infinity': inf, 'NaN': nan, 'false': Fals...) source code
 
JSONNumber(match, context) source code
 
scanstring(s, end, encoding=None, _b={'"': u'"', '/': u'/', '\\': u'\', 'b': u'', 'f': u' ', 'n':..., _m=<built-in method match of _sre.SRE_Pattern object at 0x9022020>) source code
 
JSONString(match, context) source code
 
JSONObject(match, context, _w=<built-in method match of _sre.SRE_Pattern object at 0x8f29a70>) source code
 
JSONArray(match, context, _w=<built-in method match of _sre.SRE_Pattern object at 0x8f29a70>) source code
Variables [hide private]
  _speedups = None
  FLAGS = 88
  _CONSTANTS = {'-Infinity': -inf, 'Infinity': inf, 'NaN': nan, ...
  STRINGCHUNK = re.compile(r'(?msx)(.*?)(["\\])')
  BACKSLASH = {'"': u'"', '/': u'/', '\\': u'\', 'b': u'', 'f':...
  DEFAULT_ENCODING = 'utf-8'
  WHITESPACE = re.compile(r'(?msx)\s*')
  ANYTHING = [JSONObject, JSONArray, JSONString, JSONConstant, J...
  JSONScanner = Scanner(ANYTHING)
  NaN = nan
  NegInf = -inf
  PosInf = inf
Variables Details [hide private]

_CONSTANTS

Value:
{'-Infinity': -inf,
 'Infinity': inf,
 'NaN': nan,
 'false': False,
 'null': None,
 'true': True}

BACKSLASH

Value:
{'"': u'"',
 '/': u'/',
 '\\': u'\',
 'b': u'',
 'f': u'',
 'n': u'''
''',
 'r': u'
',
...

ANYTHING

Value:
[JSONObject, JSONArray, JSONString, JSONConstant, JSONNumber,]