How to read Several JSON files to a dataframe in R?
First, you can use the full.names parameter to list.files() to get 
the full path added to each file.

temp &lt;- list.files(path, pattern="*.json", full.names=TRUE)


Next, there are issues with the data since they contain NULL values
which throws off a quick-and-dirty solution. So, we have to take each
list element and convert any NULL to NA.

Finally, we can use the handy purrr::map_df() to take the whole list
of lists and turn them into a data.frame:

movies &lt;- purrr::map_df(temp, function(x) { 
  purrr::map(jsonlite::fromJSON(x), function(y) ifelse(is.null(y), NA, y)) 
})