Convert R object to JSON file
to_json_file(x, filename, opts = list(), ...)
Arguments
- x
the object to be encoded
- filename
filename
- opts
Named list of serialization options. Usually created by to_opts()
- ...
Other named options can be used to override any options in opts
.
The valid named options are identical to arguments to to_opts()
Examples
if (FALSE) {
to_json_str(iris, filename = "iris.json")
}