Hi Ioanna, Assuming your input file is named "ii.json" and contains the text in your original post:
library(jsonlite) a2<-fromJSON("ii.json",flatten=TRUE) a2$fields$geo_applicability$fields$countries[,"fields.name"] You can find this yourself by progressively checking names and extracting until you reach the data frame that contains the information you want. Note that the format of your files must be the same for this to work on more than one JSON file. Jim ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.