The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
sf_geojson_str() and df_json_str() are
removed. as_json() replaces both and dispatches on its
input.as_json() takes jsonlite::toJSON()’s
arguments in the same order, so positional arguments after
x change meaning, and follows jsonlite’s output
conventions. Two defaults differ: numbers are lossless
(digits = Inf; digits = 4 gives
toJSON()’s output) and sf objects become
GeoJSON (sf = "geojson").gctorture tests
cover the cases that used to fail.Date, POSIXt, factor,
complex, raw, matrices, nested and list-column
frames, integer64 and non-UTF-8 encodings now follow
toJSON(); jsonlite’s own test suite runs against
as_json() with no failures.as_bytes = TRUE returns a raw vector, skipping R’s
string interning; fastgeojson_threads() sets the worker
count.dataframe argument to toggle between row-oriented output
(default, [{...}]) and column-oriented output
({...}).NAs
are coerced to "NA" strings to maintain array type
homogeneity, while other types default to null. In row
mode, NA values are omitted to reduce payload size.na = "null" or
na = "string" strictly enforces the requested format
regardless of the data type or structure.null
argument to control the serialization of NULL (empty)
values in lists, supporting coercion to empty containers
("list", default) or explicit JSON null.as_json() interface to include the auto_unbox
argument, enabling the serialization of length-one atomic vectors as
native JSON scalars. This provides deterministic control over data
typing, allowing specific distinction between singleton arrays and
primitive scalar values in the output payload.as_json(), a
high-performance, generic serializer that handles sf
objects, data frames, lists, and atomic vectors. It serves as a
parallelized, drop-in replacement for
jsonlite::toJSON().ryu::raw for floating-point formatting, writing bytes
directly to the final memory buffer to bypass stack copies.",["), to minimize capacity checks._abort symbol warnings on macOS and Linux by
implementing proper Rust build artifact cleanup.rust-toolchain.toml. This
ensures strictly reproducible builds and maximizes compatibility with
deployment servers like shinyapps.io and Posit
Connect.fastgeojson, a high-performance JSON and GeoJSON serializer
backed by Rust.sf_geojson_str(): Converts sf
objects to GeoJSON FeatureCollections.df_json_str(): Converts data frames to JSON
arrays of objects.rayon crate for massive datasets.json and geojson classes to enable zero-copy
transfer in Shiny and Plumber applications.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.