mapS4SlotsToJSONProperties: Map S4 slots to JSON properties.

View source: R/json_interface.R

mapS4SlotsToJSONPropertiesR Documentation

Map S4 slots to JSON properties.

Description

Map S4 slots to JSON properties.

Usage

mapS4SlotsToJSONProperties(
  object,
  add_type = TRUE,
  optional = NULL,
  ignore = NULL
)

Arguments

object

S4 object

add_type

add type as a property, TRUE by default

optional

properties that are optional in JSON, character vector

ignore

slots to be ignored

Value

a JSON object ready to be serialised


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