Home | History | Annotate | Download | only in json

Lines Matching defs:default

73     Supports the following objects and types by default:
94 ``.default()`` method with another method that returns a serializable
103 indent=None, separators=None, encoding='utf-8', default=None):
110 If *ensure_ascii* is true (the default), all non-ASCII
134 None is the most compact representation. Since the default
140 tuple. The default is (', ', ': '). To get the most compact JSON
143 If specified, default is a function that gets called for objects
149 The default is UTF-8.
161 if default is not None:
162 self.default = default
165 def default(self, o):
171 implement default like this::
173 def default(self, o):
180 # Let the base class default method raise the TypeError
181 return JSONEncoder.default(self, o)
262 markers, self.default, _encoder, self.indent,
267 markers, self.default, _encoder, self.indent, floatstr,