serializeData: Produces a string with a JSON representation of an R object

View source: R/UpdateListener.R

serializeDataR Documentation

Produces a string with a JSON representation of an R object

Description

This function wraps the serializeJSON with encodeString to properly quote internal quotes. This slob (string large object) can be stored in a database. In particular, it is the default method for the jsonEncoder field of the UpdateListener object.

Usage

serializeData(jlist)

Arguments

jlist

A list containing the data to be serialized.

Value

A quoted string containing the JSON representation of the argument.

Author(s)

Russell Almond

See Also

serializeJSON, encodeString, UpdateListener

Examples

dat <- list(response="b", score=1)
serializeData(dat)

ralmond/Proc4 documentation built on June 13, 2025, 7:13 a.m.