asJSONS4 {XR}R Documentation

Convert an Object to a Dictionary or Array in JSON Notation

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

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.)


[Package XR version 0.7.2 Index]