powered by
Adds indentiation to a JSON string
pretty_json(json, ...)
string of JSON
other argments passed to to_json
df <- data.frame(id = 1:10, val = rnorm(10)) js <- to_json( df ) pretty_json(js) ## can also use directly on an R object pretty_json( df )
Run the code above in your browser using DataLab