Skip to contents

This 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).

Usage

timeline_to_json_config(timeline)

Arguments

timeline

An anime_timeline object.

Value

A plain list suitable for jsonlite::toJSON(auto_unbox = TRUE).