Package django :: Package utils :: 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=_CONSTANTS) source code
 
JSONNumber(match, context) source code
 
py_scanstring(s, end, encoding=None, strict=True, _b=BACKSLASH, _m=STRINGCHUNK.match) source code
 
scanstring(s, end, encoding=None, strict=True, _b=BACKSLASH, _m=STRINGCHUNK.match) source code
 
JSONString(match, context) source code
 
JSONObject(match, context, _w=WHITESPACE.match) source code
 
JSONArray(match, context, _w=WHITESPACE.match) source code
Variables [hide private]
  FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
  _CONSTANTS = {'-Infinity': NegInf, 'Infinity': PosInf, 'NaN': ...
  STRINGCHUNK = re.compile(r'(.*?)(["\\\x00-\x1f])', FLAGS)
  BACKSLASH = {'"': u'"', '\\': u'\\', '/': u'/', 'b': u'\b', 'f...
  DEFAULT_ENCODING = "utf-8"
  WHITESPACE = re.compile(r'\s*', FLAGS)
  ANYTHING = [JSONObject, JSONArray, JSONString, JSONConstant, J...
  JSONScanner = Scanner(ANYTHING)

Imports: re, sys, scanner.Scanner, scanner.pattern, _speedups.scanstring


Variables Details [hide private]

_CONSTANTS

Value:
{'-Infinity': NegInf, 'Infinity': PosInf, 'NaN': NaN, 'true': True, 'f\
alse': False, 'null': None,}

BACKSLASH

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

ANYTHING

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