powered by
These functions are similar to toJSON and fromJSON except they explicitliy distinguish between path and literal input, and do not simplify by default.
read_json(path, simplifyVector = FALSE, ...)parse_json(json, simplifyVector = FALSE, ...)write_json(x, path, ...)
parse_json(json, simplifyVector = FALSE, ...)
write_json(x, path, ...)
file on disk
simplifies nested lists into vectors and data frames. See fromJSON.
additional conversion arguments, see also toJSON or fromJSON
string with literal json or connection object to read from
an object to be serialized to JSON
# NOT RUN { tmp <- tempfile() write_json(iris, tmp) # Nested lists read_json(tmp) # A data frame read_json(tmp, simplifyVector = TRUE) # }
Run the code above in your browser using DataLab