Description Usage Arguments Value See Also Examples
Returns the array in a JSON array by giving its index;
returns "null"
if there is no array at this index.
1 | jsonElemAt_ifArray(json, index, toJSON = FALSE, fromJSON = FALSE)
|
json |
JSON string |
index |
integer |
toJSON |
logical, whether to apply |
fromJSON |
logical, whether to apply |
A JSON string if fromJSON=FALSE
, a R object if fromJSON=TRUE
.
1 2 3 4 | json <- "[1,[{},2],null,\"bird\"]"
jsonElemAt_ifArray(json, 2)
jsonElemAt_ifArray(json, 1) == "null"
jsonElemAt_ifArray(json, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.