library(jsonlite) # import a json file as data frame file_path <- "file_path" json_file <- file(file_path) df <- jsonlite::fromJSON(json_file)