Learn R Programming

crunch (version 1.0.2)

tojson-crunch: toJSON methods for Crunch objects

Description

toJSON methods for Crunch objects

Usage

## S3 method for class 'Categories':
toJSON(x, container = isContainer(x, asIs, .level),
  collapse = "\n", ..., .level = 1L, .withNames = length(x) > 0 &&
  length(names(x)) > 0, .na = "null", .escapeEscapes = TRUE,
  pretty = FALSE, asIs = NA, .inf = " Infinity")

## S3 method for class 'VariableOrder': toJSON(x, container = isContainer(x, asIs, .level), collapse = "\n", ..., .level = 1L, .withNames = length(x) > 0 && length(names(x)) > 0, .na = "null", .escapeEscapes = TRUE, pretty = FALSE, asIs = NA, .inf = " Infinity")

## S3 method for class 'VariableGroup': toJSON(x, container = isContainer(x, asIs, .level), collapse = "\n", ..., .level = 1L, .withNames = length(x) > 0 && length(names(x)) > 0, .na = "null", .escapeEscapes = TRUE, pretty = FALSE, asIs = NA, .inf = " Infinity")

Arguments

x
the object
container
argument to the generic, not used
collapse
argument to the generic, not used
...
additional arguments argument to the generic, not used
.level
argument to the generic, not used
.withNames
argument to the generic, not used
.na
argument to the generic, not used
.escapeEscapes
argument to the generic, not used
pretty
argument to the generic, not used
asIs
argument to the generic, not used
.inf
argument to the generic, not used

Value

  • JSON-serialized character object