Serializes x to JSON by coercing it with as_vector() first.
Arguments
- x
Any. Object to serialize.
- ...
Additional arguments passed to
yyjsonr::write_json_str().- pretty
Bool. Whether to pretty-print the JSON output.
Serializes x to JSON by coercing it with as_vector() first.
Any. Object to serialize.
Additional arguments passed to yyjsonr::write_json_str().
Bool. Whether to pretty-print the JSON output.