Fixes #293: allows Time objects in JSON responses.