Package Products :: Package ZenUtils :: Module jsonutils :: Class JavaScriptEncoder |
[hide private]
[frames] | no frames]

# Class JavaScriptEncoder

source code

    json.JSONEncoder --+
                       |
                      JavaScriptEncoder

A JavaScript encoder based on JSON. It encodes like normal JSON except it passes JavaScript objects un-encoded.

Instance Methods | [hide private]
default(self, obj) | source code
_js_clean(self, jsonstr) | source code
encode(self, obj) | source code

Class Variables | [hide private]
| _js_start = `'__js_start__'`
| _js_end = `'__js_end__'`
| _js_re = `re.compile(r'\["%s", (.*?), "%s"\]' %(_js_start, _js_`...``

Class Variable Details | [hide private]

  ### _js_re Value:
      re.compile(r'\["%s", (.*?), "%s"\]' %(_js_start, _js_end))