| safe_to_json | R Documentation |
Standardized internal helper for JSON serialization with common defaults.
Object types registered via register_json_coercion() (for example ggplot
objects, via aisdk.datatools) are coerced before serialization.
safe_to_json(x, auto_unbox = TRUE, ...)
x |
Object to serialize. |
auto_unbox |
Whether to automatically unbox single-element vectors. Default TRUE. |
... |
Additional arguments to jsonlite::toJSON. |
A JSON string.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.