Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Object of type datetime is not JSON serializable

#Convert the date to a string

sample['somedate'] = str( datetime.utcnow() )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Object #type #datetime #JSON #serializable
ADD COMMENT
Topic
Name
5+5 =