jsonMembers: Members of a JSON string

Description Usage Arguments Value See Also Examples

View source: R/jsonAccess.R View source: R/jsonAccess.R

Description

Returns the members of a JSON string as a JSON string array.

Usage

1
jsonMembers(json, toJSON = FALSE, fromJSON = FALSE)

Arguments

json

JSON string

toJSON

logical, whether to apply toJSON to the input

fromJSON

logical, whether to apply fromJSON to the output

Value

A JSON string if fromJSON=FALSE, a R object if fromJSON=TRUE.

See Also

jsonElemAt, jsonAccess

Examples

1
2
json <- "{\"a\":{\"b\":8,\"c\":[1,2]},\"b\":[10,11]}"
jsonMembers(json)

stla/jsonAccess documentation built on May 26, 2017, 9 p.m.