Skip to contents

Convert EChartsOption to JSON

Usage

to_json(x, pretty = FALSE, auto_unbox = TRUE, ...)

Arguments

x

EChartsOption: Option object to serialize.

pretty

Logical: Whether to pretty-print the JSON.

auto_unbox

Logical: Whether to auto-unbox single-element vectors.

...

Dots: Additional arguments passed to jsonlite::toJSON().

Value

Character: JSON string.

Examples

to_json(EChartsOption(title = Title(text = "Weekly sessions")))
#> {"title":{"text":"Weekly sessions"}}