Lines Matching refs:default
81 >>> json.dumps(2 + 1j, default=encode_complex)
83 >>> json.JSONEncoder(default=encode_complex).encode(2 + 1j)
85 >>> ''.join(json.JSONEncoder(default=encode_complex).iterencode(2 + 1j))
117 default=None,
122 default=None, sort_keys=False, **kw):
149 tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and
153 ``default(obj)`` is a function that should return a serializable version
154 of obj or raise TypeError. The default simply raises TypeError.
156 If *sort_keys* is true (default: ``False``), then the output of
160 ``.default()`` method to serialize additional types), specify it with
168 default is None and not sort_keys and not kw):
176 default=default, sort_keys=sort_keys, **kw).iterencode(obj)
185 default=None, sort_keys=False, **kw):
211 tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and
215 ``default(obj)`` is a function that should return a serializable version
216 of obj or raise TypeError. The default simply raises TypeError.
218 If *sort_keys* is true (default: ``False``), then the output of
222 ``.default()`` method to serialize additional types), specify it with
230 default is None and not sort_keys and not kw):
237 separators=separators, default=default, sort_keys=sort_keys,
270 # default
316 of every JSON float to be decoded. By default this is equivalent to
321 of every JSON int to be decoded. By default this is equivalent to