json_array_types: Get the type of array elements

View source: R/array_utils.R

json_array_typesR Documentation

Get the type of array elements

Description

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

Usage

json_array_types(x)

Arguments

x

A JSON vector.

Value

A character vector of JSON types.

See Also

json_type()

Examples

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

mgirlich/jsontools documentation built on March 21, 2023, 9:10 a.m.