asJSONS4: Convert an Object to a Dictionary or Array in JSON Notation

Description Usage Arguments References

View source: R/Interface.R

Description

The general converter for an object with a formal class or an object to be described via its S3 class, data and attributes. Not usually called directly, but from objectAsJSON or method in an interface package.

Usage

1
asJSONS4(object, prototype, exclude = character(), level = 0)

Arguments

object

The object to convert.

prototype

The prototype object (supplied from the evaluator).

exclude

Slots to exclude from the dictionary.

level

The level of expansion of objects within the original object.

References

Chambers, John M. (2016) Extending R, Chapman & Hall/CRC. ( Chapter 13, discussing this package, is included in the package: ../doc/Chapter_XR.pdf.)


XR documentation built on May 2, 2019, 6:01 a.m.

Related to asJSONS4 in XR...