Skip to contents

to_json write data out as a JSON object

Usage

to_json(
  dataset,
  path,
  conn = cached_connection(),
  array = TRUE,
  options = NULL
)

Arguments

dataset

a remote tbl object from open_dataset, or an in-memory data.frame.

path

a local file path or S3 path with write credentials

conn

duckdbfs database connection

array

generate a JSON array?

options

additional options as a char string, see