parsing nested timelines from JSON