list_as_json_char: Helper function to convert R list to JSON-like string

View source: R/utils.R

list_as_json_charR Documentation

Helper function to convert R list to JSON-like string

Description

Converts R lists to JSON-like strings for POST request's body.

#' @keywords internal

Usage

list_as_json_char(list)

Arguments

list

R list that should be converted to the JSON-like string

Examples

## Not run: 
example_body <- list_as_json_char(list(
  "name" = "A survey object created via API/R",
  "asset_type" = "survey"
))

## End(Not run)


CorrelAid/kbtbr documentation built on Dec. 9, 2022, 8:13 a.m.