as_json: Convert an object to JSON

View source: R/utils.R

as_jsonR Documentation

Convert an object to JSON

Description

This function effectively wraps toJSON with two hardcoded arguments:

Usage

as_json(x, ...)

Arguments

x

R object to be converted to JSON.

...

additional arguments (except auto_unbox and null) passed to toJSON

Details

  • auto_unbox is set to TRUE, such that singleton values are not represented as lists.

  • NULL values are represented as JSON nulls.

Value

character of class "json"


mdneuzerling/lambdr documentation built on Jan. 25, 2025, 7:46 a.m.