powered by
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.
new_json2()
json2()
as_json2()
is_json2()
vctrs::vec_cast()
vctrs::vec_is()
json2(x = character())new_json2(x = character())as_json2(x)is_json2(x)
new_json2(x = character())
as_json2(x)
is_json2(x)
A character vector.
A json2 vector.
json2
# NOT RUN { json2() json2('{"abc": 1}') new_json2() new_json2('{"abc": 1}') new_json2(c('{"abc": 1}', '{"def": 2}', "[1, 2, 3]", NA)) # }
Run the code above in your browser using DataLab