Convert an anime_timeline to a JSON-serialisable config list
Source:R/utils.R
timeline_to_json_config.RdThis is the serialisation step called by anime_render() immediately before
animejs_widget(). All R S3 objects are converted to plain lists; scalar
fields are marked for auto_unbox treatment by remaining length-1 vectors
(jsonlite handles this when called with auto_unbox = TRUE).