due dates working with JSON