Removes indentiation from a JSON string
minify_json(json, ...)
string of JSON
other argments passed to to_json
df <- data.frame(id = 1:10, val = rnorm(10))
js <- to_json( df )
jsp <- pretty_json(js)
minify_json( jsp )
#> [{"id":1,"val":-0.7218675514802789},{"id":2,"val":-0.853698324539325},{"id":3,"val":-0.14423894058833448},{"id":4,"val":-1.0112107956465602},{"id":5,"val":-0.3533026632085533},{"id":6,"val":0.8876330939444831},{"id":7,"val":1.1615155668066233},{"id":8,"val":-0.030522637262991056},{"id":9,"val":-1.239612901246777},{"id":10,"val":0.09690964276480572}]