mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-10 23:48:01 -05:00
Make jsonlite::toJSON convert all objects
By default, toJSON won't convert objects with classes that aren't registered explicitly. This caused errors when converting html_dependency objects. Setting this option causes jsonlite to convert all objects, including html_dependency objects.
This commit is contained in:
@@ -80,7 +80,8 @@ createUniqueId <- function(bytes, prefix = "", suffix = "") {
|
||||
|
||||
toJSON <- function(x, ..., digits = getOption("shiny.json.digits", 16)) {
|
||||
jsonlite::toJSON(x, dataframe = "columns", null = "null", na = "null",
|
||||
auto_unbox = TRUE, digits = digits, use_signif = TRUE, ...)
|
||||
auto_unbox = TRUE, digits = digits, use_signif = TRUE,
|
||||
force = TRUE, ...)
|
||||
}
|
||||
|
||||
# Call the workerId func with no args to get the worker id, and with an arg to
|
||||
|
||||
Reference in New Issue
Block a user