# Write to character object
ds_json <- dataset_json(iris, "IG.IRIS", "IRIS", "Iris", iris_items)
js <- write_dataset_json(ds_json)
# Write to disk
if (FALSE) {
write_dataset_json(ds_json, "path/to/file.json")
}
Run the code above in your browser using DataLab