I have an SQL database where I want to select a column of JSONfiles and convert it to a readable R dataframe. I succeed in creating a dataframe of the JSONfiles from my database, but when I try to read them in with the fromJSON function it doesn't read all the JSONfiles.
the data$products_json column is a column with in every row a JSON file.
rs = dbSendQuery(mydb, "SELECT products_json FROM orders")
data = fetch(rs, n=-1)
library(rjson)
jfile <- fromJSON(data$products_json)