json_prettify | R Documentation |
A wrapper around jsonlite::prettify()
resp. jsonlite::minify()
.
json_prettify(x, indent = 3)
json_minify(x)
x |
A JSON vector. |
indent |
number of spaces to indent. |
A json2
vector.
x <- c("[1,2, 3]", '{"a": 1, "b": 2}')
json_prettify(x)
json_minify(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.