decode json to get time stamp