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