solve issue formating datetime to json

prevent getting TypeError datetime.datime is not JSON serializable
Merge pull request #18 from elmkarami/master

solve issue formating datetime to json