R/gsonList.R

Defines functions gsonList

Documented in gsonList

#' construct a 'GSONList' object
#'
#' @param ... input GSON objects
#' @return A 'GSONList' instance
#' @export
gsonList <- function(...) {
    obj <- list(...)
    names(obj) <- vapply(obj, function(g) g@gsname, character(1))
    class(obj) <- c("GSONList", "list")
    return(obj)
}

Try the gson package in your browser

Any scripts or data that you put into this service are public.

gson documentation built on March 7, 2023, 7:47 p.m.