Adding in jsonlite:::as.scalar to force characters to be strings rather than arrays.