toJSON: R object as JSON string

toJSONR Documentation

R object as JSON string

Description

This function converts an R object to a JSON string. see methods(veupathUtils::toJSON) for a list of support classes.

Usage

toJSON(object, named = c(TRUE, FALSE), ...)

Arguments

object

object of a supported S4 class to convert to a JSON string representation

named

logical indicating whether the result should be a complete named JSON object or just the value of the object

Value

character vector of length 1 containing JSON string


VEuPathDB/veupathUtils documentation built on Feb. 8, 2025, 12:29 p.m.