Lines Matching refs:JSONEncoder
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
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`` is used.
233 cls = JSONEncoder