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"


lambdr documentation built on Nov. 25, 2023, 5:08 p.m.