Inject a TO_JSON method into DateTime