Lines Matching defs:default
78 Supports the following objects and types by default:
99 ``.default()`` method with another method that returns a serializable
108 indent=None, separators=None, encoding='utf-8', default=None,
138 for each level of nesting. ``None`` (the default) selects the most compact
144 tuple. The default is (', ', ': '). To get the most compact JSON
147 If specified, default is a function that gets called for objects
153 The default is UTF-8.
155 If use_decimal is true (not the default), ``decimal.Decimal`` will
159 If namedtuple_as_object is true (the default), objects with
162 If tuple_as_array is true (the default), tuple (and subclasses) will
165 If bigint_as_string is true (not the default), ints 2**53 and higher
191 if default is not None:
192 self.default = default
195 def default(self, o):
201 implement default like this::
203 def default(self, o):
210 return JSONEncoder.default(self, o)
296 markers, self.default, _encoder, self.indent,
304 markers, self.default, _encoder, self.indent, floatstr,