implement json date interface to create test code