I\'d like to convert my json data to data frame in R. Here is what I\'ve done so far:
library(\"rjson\")
result <- fromJSON(file =\"mypath/data.json\")
js
Try using jsonlite library. It work for me
fromJSON(temp) %>% as.data.frame
Following is output
if you want list.
fromJSON(temp)
library(jsonlite)
wine_json <- '{"name":"Chateau Migraine", "year":1997, "alcohol_pct":12.4, "color":"red", "awarded":false}'
wine <- fromJSON(wine_json)
str(wine)