Closed peterkronenberg closed 2 months ago
I would like to be able to do something like json.dumps(date_time_range) and get something like this
json.dumps(date_time_range)
{ "start": <starttime>, "end": <endtime> }
Is this possible?
How about creating a dict object?
dict
json.dumps({ "start": str(dtr.start_datetime), "end": str(dtr.end_datetime), })
I would like to be able to do something like
json.dumps(date_time_range)
and get something like thisIs this possible?