json2 | R Documentation |
new_json2()
is a fast, low-level constructor that takes a character vector.
json2()
checks the input for validity.
as_json2()
and is_json2()
are simple forwarders to vctrs::vec_cast()
and vctrs::vec_is()
respectively.
json2(x = character())
new_json2(x = character())
as_json2(x)
is_json2(x)
x |
A character vector. |
A json2
vector.
json2()
json2('{"abc": 1}')
new_json2()
new_json2('{"abc": 1}')
new_json2(c('{"abc": 1}', '{"def": 2}', "[1, 2, 3]", NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.