Searched refs:JSONEncoder (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython2/Lib/json/ |
D | __init__.py | 109 from .encoder import JSONEncoder 111 _default_encoder = JSONEncoder( 182 cls = JSONEncoder 246 cls = JSONEncoder
|
D | encoder.py | 70 class JSONEncoder(object): class
|
/external/python/cpython2/Lib/json/tests/ |
D | test_recursion.py | 47 class RecursiveJSONEncoder(self.json.JSONEncoder): 55 return pyjson.JSONEncoder.default(o) 98 class EndlessJSONEncoder(self.json.JSONEncoder):
|
D | test_unicode.py | 7 encoder = self.json.JSONEncoder(encoding='utf-8')
|
/external/llvm/utils/lit/lit/ |
D | Test.py | 3 from json import JSONEncoder 89 e = JSONEncoder() 96 e = JSONEncoder(indent=2, sort_keys=True)
|
/external/python/cpython2/Doc/library/ |
D | json.rst | 82 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/ |
D | proxy.py | 30 json_encoder_class = json_encoder.JSONEncoder
|
D | serviceHandler.py | 33 json_encoder = encoder.JSONEncoder()
|
/external/python/cpython2/Doc/howto/ |
D | logging-cookbook.rst | 861 class Encoder(json.JSONEncoder):
|