Home
last modified time | relevance | path

Searched refs:JSONEncoder (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Lib/json/
D__init__.py109 from .encoder import JSONEncoder
111 _default_encoder = JSONEncoder(
182 cls = JSONEncoder
246 cls = JSONEncoder
Dencoder.py70 class JSONEncoder(object): class
/external/python/cpython2/Lib/json/tests/
Dtest_recursion.py47 class RecursiveJSONEncoder(self.json.JSONEncoder):
55 return pyjson.JSONEncoder.default(o)
98 class EndlessJSONEncoder(self.json.JSONEncoder):
Dtest_unicode.py7 encoder = self.json.JSONEncoder(encoding='utf-8')
/external/llvm/utils/lit/lit/
DTest.py3 from json import JSONEncoder
89 e = JSONEncoder()
96 e = JSONEncoder(indent=2, sort_keys=True)
/external/python/cpython2/Doc/library/
Djson.rst82 Extending :class:`JSONEncoder`::
85 >>> class ComplexEncoder(json.JSONEncoder):
90 ... return json.JSONEncoder.default(self, obj)
182 To use a custom :class:`JSONEncoder` subclass (e.g. one that overrides the
184 *cls* kwarg; otherwise :class:`JSONEncoder` is used.
374 .. class:: JSONEncoder([skipkeys[, ensure_ascii[, check_circular[, allow_nan[, sort_keys[, indent[,…
473 return JSONEncoder.default(self, o)
481 >>> JSONEncoder().encode({"foo": ["bar", "baz"]})
490 for chunk in JSONEncoder().iterencode(bigobject):
500 For simplicity, :class:`JSONEncoder` and :class:`JSONDecoder` subclasses, and
/external/autotest/frontend/afe/json_rpc/
Dproxy.py30 json_encoder_class = json_encoder.JSONEncoder
DserviceHandler.py33 json_encoder = encoder.JSONEncoder()
/external/python/cpython2/Doc/howto/
Dlogging-cookbook.rst861 class Encoder(json.JSONEncoder):