refactored create_timeline_json and spy_targets_timeline