Serializers are used in Plumber to transform the R object produced by a filter/endpoint into an HTTP response that can be returned to the client. See here for more details on Plumber serializers and how to customize their behavior.

serializer_json(...)

serializer_unboxed_json(auto_unbox = TRUE, ...)

serializer_content_type(type)

serializer_csv(...)

serializer_html()

serializer_htmlwidget(...)

serializer_rds(version = "2", ascii = FALSE, ...)

serializer_yaml(...)

Arguments

...

extra arguments supplied to respective internal serialization function.

auto_unbox

automatically unbox all atomic vectors of length 1. It is usually safer to avoid this and instead use the unbox function to unbox individual elements. An exception is that objects of class AsIs (i.e. wrapped in I()) are not automatically unboxed. This is a way to mark single values as length-1 arrays.

type

The value to provide for the Content-Type HTTP header.

version

the workspace format version to use. NULL specifies the current default version (3). The only other supported value is 2, the default from R 1.4.0 to R 3.5.0.

ascii

a logical. If TRUE or NA, an ASCII representation is written; otherwise (default) a binary one. See also the comments in the help for save.