json_wrap_scalars: Wrap scalars in a JSON array

Description Usage Arguments Value Examples

View source: R/array_utils.R

Description

Wrap scalars in a JSON array

Usage

1

Arguments

x

A character or numeric vector.

Value

A json2 vector similar to x with the JSON scalars wrapped as JSON array.

Examples

1
2
json_wrap_scalars(c('["a", "b"]', "c", "d"))
json_wrap_scalars(c(1, 2))

jsontools documentation built on March 22, 2021, 5:06 p.m.