Write list or data.frame object to ndjson

Write list or data.frame object to ndjson

to_ndjson_file(x, filename, opts = list(), ...)

to_ndjson_str(x, opts = list(), ...)

to_ndjson_file(x, filename, opts = list(), ...)

to_ndjson_str(x, opts = list(), ...)

Arguments

x

data.frame or list

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()

See also

Other JSON Serializer: to_json_str()

Examples

if (FALSE) {
to_json_str(iris, filename = "iris.json")
}