R/json_element.R

Defines functions JSONElement

Documented in JSONElement

#' 
#' JSON element class.
#' 
#' @export
setClass(
  "json_element",
  representation(
    data="ANY"
  )
)

#' 
#' Instantiate a JSON element.
#' 
#' @param x JSON object representation in R
#' @return JSON element
#' @export
JSONElement <- function(x) {
  return(new("json_element", data=x))
}

Try the campsismod package in your browser

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

campsismod documentation built on Jan. 27, 2026, 5:07 p.m.