Searched refs:JSONEncoder (Results 1 - 8 of 8) sorted by relevance
/third_party/python/Lib/json/ |
H A D | __init__.py | 83 >>> json.JSONEncoder(default=encode_complex).encode(2 + 1j) 85 >>> ''.join(json.JSONEncoder(default=encode_complex).iterencode(2 + 1j)) 101 'JSONDecoder', 'JSONDecodeError', 'JSONEncoder', 107 from .encoder import JSONEncoder namespace 110 _default_encoder = JSONEncoder( 159 To use a custom ``JSONEncoder`` subclass (e.g. one that overrides the 161 the ``cls`` kwarg; otherwise ``JSONEncoder`` is used. 172 cls = JSONEncoder 221 To use a custom ``JSONEncoder`` subclass (e.g. one that overrides the 223 the ``cls`` kwarg; otherwise ``JSONEncoder`` i [all...] |
H A D | encoder.py | 1 """Implementation of JSONEncoder 74 class JSONEncoder(object): class 108 """Constructor for JSONEncoder, with sensible defaults. 177 return JSONEncoder.default(self, o) 186 >>> from json.encoder import JSONEncoder 187 >>> JSONEncoder().encode({"foo": ["bar", "baz"]}) 211 for chunk in JSONEncoder().iterencode(bigobject):
|
/third_party/python/Lib/test/test_json/ |
H A D | test_recursion.py | 48 class RecursiveJSONEncoder(self.json.JSONEncoder): 56 return self.json.JSONEncoder.default(o) 96 class EndlessJSONEncoder(self.json.JSONEncoder):
|
H A D | test_speedups.py | 73 self.json.encoder.JSONEncoder(**{name: BadBool()}).encode({'a': 1}) 82 self.json.encoder.JSONEncoder(sort_keys=True).encode({'a': 1, 1: 'a'})
|
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/ |
H A D | json.cc | 105 class JSONEncoder : public ParserHandler { class 107 JSONEncoder(C* out, Status* status) : out_(out), status_(status) { in JSONEncoder() function in v8_crdtp::json::__anon15265::JSONEncoder 365 new JSONEncoder<std::vector<uint8_t>>(out, status)); in NewJSONEncoder() 371 new JSONEncoder<std::string>(out, status)); in NewJSONEncoder()
|
/third_party/node/deps/v8/tools/ |
H A D | locs.py | 297 class LocsEncoder(json.JSONEncoder): 309 return json.JSONEncoder.default(self, o)
|
/third_party/node/tools/inspector_protocol/encoding/ |
H A D | encoding.cc | 1253 class JSONEncoder : public StreamingParserHandler { class 1255 JSONEncoder(const Platform* platform, C* out, Status* status) in JSONEncoder() function in v8_inspector_protocol_encoding::json::__anon15492::JSONEncoder 1499 new JSONEncoder<std::vector<uint8_t>>(platform, out, status)); in NewJSONEncoder() 1505 new JSONEncoder<std::string>(platform, out, status)); in NewJSONEncoder()
|
/third_party/python/Lib/test/libregrtest/ |
H A D | runtest_mp.py | 500 class EncodeTestResult(json.JSONEncoder):
|
Completed in 8 milliseconds