json parsing
adding time-to-end calculation