fix for objects that come through that are of type datetime, which json
can't handle.