json_keys: Get keys of JSON object resp. array

Description Usage Arguments Value Examples

View source: R/keys.R

Description

Get keys of JSON object resp. array

Usage

1

Arguments

x

A JSON vector

Value

A list of keys.

Examples

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

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