Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Last active December 11, 2015 17:38
Show Gist options
  • Save nassimhaddad/4635804 to your computer and use it in GitHub Desktop.
Save nassimhaddad/4635804 to your computer and use it in GitHub Desktop.
import json file
# install.packages("rjson")
library("rjson")
json_file <- "json_file.json"
json_data <- fromJSON(paste(readLines(json_file), collapse=""))
# additional if needed
library(plyr)
json_data <- lapply(json_data, as.data.frame)
json_data <- do.call(rbind.fill, json_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment