Pierre Hanser added the comment:
you realize that the current handling is incorrect and also not documented?
and that the described case is from the real world: it prevents using pydbus
and dbus.Boolean type to send a json boolean
I don't take your argument about performance:
i would li
New submission from Pierre Hanser :
The json module provides an encoder python -> json.
The encoding may be specialized by the user, using
the cls parameter of the dumps function.
But all simple types are always handled by the library encoder,
the user encoder is only used as a last resort