Alex Rivera | Logout

Importing data from a JSON file into R

Asked 2010-04-11T15:54:39.023
193

Is there a way to import data from a JSON file into R? More specifically, the file is an array of JSON objects with string fields, objects, and arrays. The RJSON Package isn't very clear on how to deal with this http://cran.r-project.org/web/packages/rjson/rjson.pdf.

Edit
Report

1 Answer

17

If the URL is https, like used for Amazon S3, then use getURL

json <- fromJSON(getURL('https://s3.amazonaws.com/bucket/my.json'))
answered 2013-06-10T04:44:10.053

Your Answer