def default_serializer(o):
defs = (<EOL>((datetime.date, datetime.time),<EOL>lambda x: x.isoformat(), ),<EOL>((datetime.datetime, ),<EOL>lambda x: dt2utc_timestamp(x), ),<EOL>)<EOL>for types, fun in defs:<EOL><INDENT>if isinstance(o, types):<EOL><INDENT>return fun(o)<EOL><DEDENT><DEDENT>
Default serializer for json.