Use the QuickJS C API to convert an R object to a JSON string
to_json(arg, auto_unbox = FALSE)
arg
Argument to convert to JSON
auto_unbox
Automatically unbox single element vectors
JSON string