Description Usage Arguments Value See Also Examples
Returns the string in a JSON array by giving its index;
returns "null"
if there is no string at this index.
1 | jsonElemAt_ifString(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 | json <- "[1,\"hello\",null,\"bird\"]"
jsonElemAt_ifString(json, 1)
jsonElemAt_ifString(json, 0) == "null"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.