I am trying to convert around 200 lines of json strings into dataframe in R. I end up getting default column names in the data frame instead of the ones mentioned in the list. Here is my code:
out <- lapply(readLines("exampleFile.json", n=200), fromJSON) // Used to convert json into a list
test <- data.frame(t(sapply(out,c))) //convert the list into a dataframe
Attached is the sceenshot of the results of the variables 'out'
Attached is the sceenshot of the results of the variables 'test'
Anyhelp is appreciated!