This function takes care of the defaults preferred by the Rstox packages

toJSON_Rstox(x, ...)

Arguments

x

An object to convert to JSON.

...

Parameters overriding the defaults digits = NA, auto_unbox = TRUE, na = "null", null = "null".