Back to index

python3.2  3.2.2
Functions | Variables
json.encoder Namespace Reference

Functions

def default

Variables

 c_encode_basestring_ascii = None
 c_make_encoder = None
tuple ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]')ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])

Detailed Description

Implementation of JSONEncoder

Function Documentation

def json.encoder.default (   self,
  o 
)

Definition at line 160 of file encoder.py.

00160 
00161             def default(self, o):
00162                 try:
00163                     iterable = iter(o)
00164                 except TypeError:
00165                     pass
00166                 else:
00167                     return list(iterable)
00168                 return JSONEncoder.default(self, o)

Here is the call graph for this function:


Variable Documentation

Definition at line 8 of file encoder.py.

Definition at line 12 of file encoder.py.

tuple json.encoder.ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]')ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])

Definition at line 14 of file encoder.py.