I am trying to read list of json files in my local folder. But the below code does not work. Can anyone help me in solving this
json_files <- list.files(pattern = "*.json")
for(i in length(json_files))
{
json_data3[[i]] <- fromJSON(paste(readLines[[i]],collapse = ""))
}
readLines[[i]]you wantreadLines(json_files[[i]]).fromJSON(json_files[i])is how I usually read them in.