I'm using package "jsonlite" to get a json file and convert it to a dataframe so i can run some analysis on it. The problem is I am getting very few columns (i.e 12 instead of 100) and it's because the missing columns appeared to be nested. The depth is about 3-4 levels. I have tried to add flatten = TRUE, however no luck.
stats<-fromJSON(paste0("websitehere..api_key=", key, flatten=TRUE))
t<-data.frame(stats)
Link to json im using https://www.dropbox.com/s/hpnaa4phefz6x2f/44844249.json?dl=0