powered by
A wrapper around jsonlite::prettify() resp. jsonlite::minify().
jsonlite::prettify()
jsonlite::minify()
json_prettify(x, indent = 3)json_minify(x)
json_minify(x)
A JSON vector.
number of spaces to indent.
A json2 vector.
json2
# NOT RUN { x <- c("[1,2, 3]", '{"a": 1, "b": 2}') json_prettify(x) json_minify(x) # }
Run the code above in your browser using DataLab