docs: def object_to_json(obj):
      """Convert object that cannot be natively serialized by python to JSON representation."""
      if isinstance(obj, (datetime.datetime, datetime.date, datetime.time)):
          return obj.isoformat()
      return str(obj)