powered by
This function returns a list that jsonlite::toJSON() will always encode as {}.
jsonlite::toJSON()
{}
js_obj(x = list())
A list with the names attribute set.
A list, or list-like object.
library(webqueue) updates <- list() response(list(updates = updates)) response(list(updates = js_obj(updates)))
Run the code above in your browser using DataLab