first of all, let me congratulate with you for how good pgAdmin 4 is quickly becoming. I tried it now and then, and I'm always surprised by the amount of effort you spend on it, thank you!
Thanks!
I'd like to know if there is already a plan to properly handle date/timestamp fields, that currently fail with an error because simplejson by default does not know how the serialize (or deserialize) those data types.
Thanks for sharing the information.
Can you please share some more detailed information about it, where/in which condition it does fail?
One minimalistic approach would be subclassing the JSONEncoder and overriding its default() method. This would solve the serialization problem, but I guess that sooner or later we may want to support also the other way around.
Yeah - that's what we've done at one place.
One further step in that direction could be using nssjson[1] (my fork of simplejson that supports date/time/datetime/UUID out of the box). I reimplemented the same functionality on top of python-rapidjson, but the author didn't accept my PR[2] yet. Rapidjson is much faster on most operations, but it's also very young...