read.json {SparkR} | R Documentation |
Loads a JSON file (JSON Lines text format or newline-delimited JSON ), returning the result as a SparkDataFrame It goes through the entire dataset once to determine the schema.
## Default S3 method: read.json(path, ...) ## Default S3 method: jsonFile(path)
path |
Path of file to read. A vector of multiple paths is allowed. |
... |
additional external data source specific named properties. |
SparkDataFrame
read.json since 1.6.0
jsonFile since 1.4.0
## Not run:
##D sparkR.session()
##D path <- "path/to/file.json"
##D df <- read.json(path)
##D df <- jsonFile(path)
## End(Not run)