added working code to read date and time from JSON