save_json: save_json

save_jsonR Documentation

save_json

Description

A shallow wrapper for jsonlite::toJSON()

Usage

save_json(
  out,
  filename,
  pretty = TRUE,
  auto_unbox = TRUE,
  na = "null",
  null = "null",
  ...
)

Arguments

out

a data frame to be output (passed to jsonlite::toJSON())

filename

output filename (including path)

pretty

logical; prettify output or make an unreadable, ugly json? default=TRUE

auto_unbox

logical param from jsonlite::toJSON(); default=TRUE

na

how to print NA values; default= "null"

null

how to print null values; default= "null"

...

other arguments to jsonlite::toJSON()


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.