R/push_parser.R

Defines functions parse_con

#' @useDynLib jsonlite R_parse_connection
parse_con <- function(con, bigint_as_char){
  stopifnot(inherits(con, "connection"))
  if(!isOpen(con)){
    on.exit(close(con)) # also destroy con if 'open' fails
    open(con, "rb")
  }
  .Call(R_parse_connection, con, bigint_as_char)
}

Try the jsonlite package in your browser

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

jsonlite documentation built on June 22, 2024, 11:05 a.m.