Learn R Programming

aisdk (version 1.1.0)

safe_to_json: Safe Serialization to JSON

Description

Standardized internal helper for JSON serialization with common defaults.

Usage

safe_to_json(x, auto_unbox = TRUE, ...)

Value

A JSON string.

Arguments

x

Object to serialize.

auto_unbox

Whether to automatically unbox single-element vectors. Default TRUE.

...

Additional arguments to jsonlite::toJSON.