From 22661b1fa4cf7cf368c6445db949be1bb3230d32 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Fri, 26 Feb 2021 12:38:46 -0800 Subject: [PATCH] Mention slight inconsistency vs rjson::toJSON --- R/fromJSON.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/fromJSON.R b/R/fromJSON.R index ca23dedc..9d8b165e 100644 --- a/R/fromJSON.R +++ b/R/fromJSON.R @@ -3,7 +3,8 @@ #' #' The \code{\link{toJSON}} and \code{\link{fromJSON}} functions are drop-in replacements for the identically named functions #' in packages \code{rjson} and \code{RJSONIO}. Our implementation uses an alternative, somewhat more consistent mapping -#' between \R{} objects and JSON strings. +#' between \R{} objects and JSON strings. Note also that \code{rjson::toJSON} with default arguments is more precisely replaced +#' by \code{jsonlite::toJSON} using the arguments \code{digits = 15L} and \code{auto_unbox = TRUE}. #' #' The \code{\link{serializeJSON}} and \code{\link{unserializeJSON}} functions in this package use an #' alternative system to convert between \R{} objects and JSON, which supports more classes but is much more verbose.