I have a dataframe that I\'d like to convert to json format:
my data frame called res1:
library(rjson) structure(list(id = c(1, 2, 3, 4, 5), value =
Now you can easily just call jsonlite::write_json() directly on the dataframe.
jsonlite::write_json()