NEWS.md
read_ndjson_str()
normalizePath()
on all file pathsread_json_file()
fast_numerics
flag when writing.
FALSE
TRUE
the user is guaranteeing that there are no NA, NaN or Inf values in the numeric and integer vectors, and thus a faster method for writing these vectors to JSON can be used.raw
vectors to always use the fast_numerics
method, as raw R vectors (by definition) will not have NA, NaN or Inf values.output_verbose_error()
to avoid overflow of size_t
MAKEVARS
PKG_CFLAGS = -Wconversion
strlen()
leading to a check failure on cran with clang-ASANC
as 'C'
yyjson
librarycheckRd
NOTEint64 = "double"
option to opts_read_json()
digits
argument for rounding floating point values to the specified number of significant digits
digits = -1
means don’t do any roundingdigits = 0
rounds floating point values to integers (and writes the values as JSON integers)vectors_to_df
obj_of_arrs_to_df
arr_of_obs_to_df
AsIs
(using a call to I()
) will never be unboxed i.e. will always be serialized as a JSON []-array with one element.length1_array_asis
. If TRUE
then automatically add the class AsIs
to the object object.path.expand()
when handling filenames. Thanks to
jsonlite
(when working within the plotly
package)promote_num_to_string
in opts_read_json()
to enable forced promotion of numerics to stringwrite_geojson_str()
read_geojson_str()
, read_geojson_file()
write_geojson_str()
, write_geojson_file()
validate_json_file()
and validate_json_str()
write_ndjson_file()
and write_ndjson_str()
read_json_raw()
to parse JSON directly from a raw vector (which contains UTF-8 string data)