json_array_types: Get the type of array elements

Description Usage Arguments Value See Also Examples

View source: R/array_utils.R

Description

This is barely useful on its own but can be of some use in combination with json_array_length().

Usage

1

Arguments

x

A JSON vector.

Value

A character vector of JSON types.

See Also

json_type()

Examples

1
json_array_types(c("[1, true]", '["a", [1]]'))

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