Learn R Programming

jsontools (version 0.1.0)

json_array_types: 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

Run this code
# NOT RUN {
json_array_types(c("[1, true]", '["a", [1]]'))
# }

Run the code above in your browser using DataLab