def json_serial()

in apply/src/awsqs_kubernetes_resource/utils.py [0:0]


def json_serial(o):
    if isinstance(o, (datetime, date)):
        return o.strftime("%Y-%m-%dT%H:%M:%SZ")
    raise TypeError("Object of type '%s' is not JSON serializable" % type(o))