Description Usage Arguments Value Examples
Mark a vector of length one to not be wrapped in an array when formatted as
JSON. This is only a tiny wrapper around jsonlite::unbox() to avoid
conflict with rlang::unbox().
1 | json_u(x)
|
x |
atomic vector of length 1, or data frame with 1 row. |
A singleton version of x.
1 2 | format_json(list(foo = 123))
format_json(list(foo = json_u(123)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.