Description Usage Arguments Value Examples
Returns a JSON string in pretty format.
1 2 | jsonPretty(json, indent = "indent2", numformat = "generic",
toJSON = FALSE)
|
json |
JSON string |
indent |
indentation per level of nesting; choices are
|
numformat |
number format; choices are:
|
toJSON |
logical, whether to apply |
A JSON string.
1 2 3 4 | json <- "{\"a\": {\"b\": 8, \"c\": [1,2]}, \"b\": [10.14, 11.618]}"
jsonPretty(json) %>% cat
jsonPretty(json, indent="indent0") %>% cat
jsonPretty(json, indent="tab", numformat="scientific") %>% cat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.