toJSON <- function(...){
unclass(minify(jsonlite::toJSON(...)))
}
toJSON2 <- function(x) {
toJSON(x, keep_vec_names = TRUE, auto_unbox = TRUE)
}
toJSON3 <- function(x) {
toJSON(x, keep_vec_names = TRUE, auto_unbox = TRUE, dataframe = "columns", rownames = FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.