toJSON() and stream_out() behave differently when digits= is not set.
jsonlite::toJSON(tb, verbose = FALSE)
# [{"x":3.1416}]
jsonlite::stream_out(tb, verbose = FALSE)
# {"x":3.14159} # <--- not 4 digits
jsonlite::toJSON(tb, verbose = FALSE, digits = 4)
# [{"x":3.1416}]
jsonlite::stream_out(tb, verbose = FALSE, digits = 4)
# {"x":3.1416}
jsonlite::toJSON(tb, verbose = FALSE, digits = 9)
# [{"x":3.141592654}]
jsonlite::stream_out(tb, verbose = FALSE, digits = 9)
# {"x":3.141592654}
toJSON()andstream_out()behave differently whendigits=is not set.