Having trouble exporting a json string to a text file -
> tester <- list(10, 20) %>%
toJSON(. , auto_unbox = T)
> write.table(tester, file = "JSONfile.txt", sep = "")
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) :
cannot coerce class ""json"" to a data.frame
is there an alternative way to exporting the JSON into a text?