R/asJSON.vctrs.R

setMethod("asJSON", "vctrs_vctr", function(x, ...) {
  # dispatch based on the underlying type
  class(x) <- setdiff(class(x), 'vctrs_vctr')
  asJSON(x, ...)
})

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.