in apply/src/awsqs_kubernetes_resource/utils.py [0:0]
4 lines of code
2 McCabe index (conditional complexity)
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))