json_keys: Get keys of JSON object resp. array

View source: R/keys.R

json_keysR Documentation

Get keys of JSON object resp. array

Description

Get keys of JSON object resp. array

Usage

json_keys(x)

Arguments

x

A JSON vector

Value

A list of keys.

Examples

json_keys(c(
  '{"a": 1, "b": 2}',
  '{"x": 1, "y": 2}',
  "[1, 2]"
))

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