Switching from jsonlite:::as.scalar to unbox, now that the library has been updated and this function is exported.