Convert json input to pretty printed output
pretty(x, indent = 4)
x
: Input, character stringindent
: (integer) Number of spaces to indentOnly works with json class input. This is a simple wrapper around jsonlite::prettify()
, so you can easily use that yourself.
Useful links