convert_to_json: Convert a named list to JSON

View source: R/utils.R

convert_to_jsonR Documentation

Convert a named list to JSON

Description

The main reason for including this wrapper method is to make roxygen aware of jsonlite dependency

Usage

convert_to_json(a_list, pretty = TRUE, auto_unbox = TRUE, ...)

Arguments

a_list

An R object to convert to JSON

pretty

Add whitespace to JSON output? Default: TRUE [argument to jsonlite::toJSON]

auto_unbox

Automatically "unbox" vectors of length one? Default: TRUE [argument to jsonlite::toJSON]

...

Additional arguments to jsonlite::toJSON

Value

A character string formatted as JSON


brownag/SoilKnowledgeBase documentation built on April 5, 2025, 1:32 a.m.