write_json_str | R Documentation |
Convert R object to JSON string
write_json_str(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 |
Single string containing JSON
Other JSON Serializer:
write_json_file()
,
write_ndjson_file()
,
write_ndjson_str()
write_json_str(head(iris, 3), pretty = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.