Home | Trees | Indices | Help |
---|
|
object --+ | json.encoder.JSONEncoder --+ | PaymentObjectEncoder
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Implement this method in a subclass such that it returns a serializable object for ``o``, or calls the base implementation (to raise a ``TypeError``). For example, to support arbitrary iterators, you could implement default like this: def default(self, o): try: iterable = iter(o) except TypeError: pass else: return list(iterable) return JSONEncoder.default(self, o)
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Jan 19 03:50:22 2024 | http://epydoc.sourceforge.net |