write_json_raw | R Documentation |
Convert R object to a raw vector of JSON data
write_json_raw(x, opts = list(), ...)
x |
the object to be encoded |
opts |
Named list of serialization options. Usually created by |
... |
Other named options can be used to override any options in |
Raw vector containing the JSON
Other JSON Serializer:
write_json_file()
,
write_json_str()
,
write_ndjson_file()
,
write_ndjson_raw()
,
write_ndjson_str()
js <- write_json_raw(head(iris, 3))
js
read_json_raw(js)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.