How can I convert Json to data frame in R
Try using jsonlite library. It work for me
fromJSON(temp) %>% as.data.frame
Following is output
if you want list.
fromJSON(temp)
Load the jsonlite package
library(jsonlite)
wine_json is a JSON
wine_json <- '{"name":"Chateau Migraine", "year":1997, "alcohol_pct":12.4, "color":"red", "awarded":false}'
Convert wine_json into a list:
wine <- fromJSON(wine_json)
Print structure of wine
str(wine)