Fixed timeline JSON generation. Events generation done